CVE-2026-99525
What it is
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix use-after-free in cifs_ses_add_channel() The error path of cifs_ses_add_channel() calls cifs_put_tcp_session() before cifs_chan_clear_need_reconnect(). The latter reaches cifs_ses_get_chan_index(), which dereferences server->terminate; if the put was the final reference, TCP_Server_Info is already freed and this is a use-after-free. Same put-then-use pattern as the recently fixed sibling in commit 717e0a25036b ("cifs: Fix server use-after-free in cifs_chan_skip_or_disable()"). Move the put last, but do not read chan->server after dropping chan_lock: chan points into ses->chans[], and once chan_count is decremented a concurrent add_channel can reuse the slot and overwrite the pointer, so the put would act on the new channel's server. Cache the pointer under chan_lock, clear the reconnect bit and decrement chan_count while still holding the reference, and release it after the unlock. This issue was discovered by Tencent CodeBuddy Security.
At a glance
- Fix
- No patch or advisory is linked yet. Look at mitigations or restrict exposure.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: not scored yet.
- Severity: not scored yet.
- Fix: none linked yet, which raises it.
Details
- Published
- Last modified
- Record status
- Received
Affected
- Linux < d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99
- Linux < 8069935474b1502459ab50f75a67d7394a93cd5d
- Linux < 72367dacb5c9d8bd486b2fcaf56b6d3086d57250
- Linux < 031278577380e7875d95aed81a2b2bcac39be923
- Linux e341b7975bd72d3ebda92b8d747d0aad15ce8717
- Linux 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f
- Linux < 6.2
- Linux < 6.7
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2026-99525.md and follow it. Check whether this project is affected by CVE-2026-99525. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.