CVE-2026-99525
smb: client: fix use-after-free in cifs_ses_add_channel()
- CVSS
- —
- EPSS
- 0.21% (p11)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-12-01
- Product
- Linux Linux
Description
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.
Fixed in
031278577380e7875d95aed81a2b2bcac39be923 · 093a42a31ae8bb26da7f4a358f83300d76d0c46b · 4bc20a4ccdbdbe14e8628073109c52a22d7512d1 · 6.1.193 · 6.12.117 · 6.18.61 · 6.2 · 6.6.163 · 6.7 · 7.3.2 · 72367dacb5c9d8bd486b2fcaf56b6d3086d57250 · 8069935474b1502459ab50f75a67d7394a93cd5d · d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.1.178, <6.1.193 | 6.1.193 |
| Linux | Kernel | >=6.1.178, <6.2 | 6.2 |
| Linux | Kernel | >=6.13.0, <6.18.61 | 6.18.61 |
| Linux | Kernel | >=6.19.0, <7.3.2 | 7.3.2 |
| Linux | Kernel | >=6.6.15, <6.6.163 | 6.6.163 |
| Linux | Kernel | >=6.6.15, <6.7 | 6.7 |
| Linux | Kernel | >=6.7.0, <6.12.117 | 6.12.117 |
| vendor | Linux | >=3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, <4bc20a4ccdbdbe14e8628073109c52a22d7512d1 | 4bc20a4ccdbdbe14e8628073109c52a22d7512d1 |
| vendor | Linux | >=6.1.178, <6.1.193 | 6.1.193 |
| vendor | Linux | >=6.1.178, <6.2 | 6.2 |
| vendor | Linux | >=6.6.15, <6.6.163 | 6.6.163 |
| vendor | Linux | >=6.6.15, <6.7 | 6.7 |
| vendor | Linux | >=e341b7975bd72d3ebda92b8d747d0aad15ce8717, <093a42a31ae8bb26da7f4a358f83300d76d0c46b | 093a42a31ae8bb26da7f4a358f83300d76d0c46b |
| vendor | Linux | >=ee1d21794e55ab76505745d24101331552182002, <031278577380e7875d95aed81a2b2bcac39be923 | 031278577380e7875d95aed81a2b2bcac39be923 |
| vendor | Linux | >=ee1d21794e55ab76505745d24101331552182002, <72367dacb5c9d8bd486b2fcaf56b6d3086d57250 | 72367dacb5c9d8bd486b2fcaf56b6d3086d57250 |
| vendor | Linux | >=ee1d21794e55ab76505745d24101331552182002, <8069935474b1502459ab50f75a67d7394a93cd5d | 8069935474b1502459ab50f75a67d7394a93cd5d |
| vendor | Linux | >=ee1d21794e55ab76505745d24101331552182002, <d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99 | d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 15d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99 other
- https://git.kernel.org/stable/c/8069935474b1502459ab50f75a67d7394a93cd5d other
- https://git.kernel.org/stable/c/72367dacb5c9d8bd486b2fcaf56b6d3086d57250 other
- https://git.kernel.org/stable/c/031278577380e7875d95aed81a2b2bcac39be923 other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99525.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99525 advisory
- https://git.kernel.org/stable/c/093a42a31ae8bb26da7f4a358f83300d76d0c46b other
- https://git.kernel.org/stable/c/4bc20a4ccdbdbe14e8628073109c52a22d7512d1 other