CVE-2026-99525
smb: client: fix use-after-free in cifs_ses_add_channel()
Check your servers for CVE-2026-99525
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99525 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.84% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e341b7975bd72d3ebda92b8d747d0aad15ce8717, before 093a42a31ae8bb26da7f4a358f83300d76d0c46b affected from 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, before 4bc20a4ccdbdbe14e8628073109c52a22d7512d1 affected from ee1d21794e55ab76505745d24101331552182002, before d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99 affected from ee1d21794e55ab76505745d24101331552182002, before 8069935474b1502459ab50f75a67d7394a93cd5d affected from ee1d21794e55ab76505745d24101331552182002, before 72367dacb5c9d8bd486b2fcaf56b6d3086d57250 affected from ee1d21794e55ab76505745d24101331552182002, before 031278577380e7875d95aed81a2b2bcac39be923 affected from 6.1.178, before 6.1.193 affected from 6.6.15, before 6.6.163
Other versions: unaffected
|
| Linux |
affected 6.7 unaffected before 6.7 unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.3.2 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99525 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99525
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99525
trivy image --scanners vuln IMAGE | grep CVE-2026-99525
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/093a42a31ae8bb26da7f4a358f83300d76d0c46b git.kernel.org
- https://git.kernel.org/stable/c/4bc20a4ccdbdbe14e8628073109c52a22d7512d1 git.kernel.org
- https://git.kernel.org/stable/c/d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99 git.kernel.org
- https://git.kernel.org/stable/c/8069935474b1502459ab50f75a67d7394a93cd5d git.kernel.org
- https://git.kernel.org/stable/c/72367dacb5c9d8bd486b2fcaf56b6d3086d57250 git.kernel.org
- https://git.kernel.org/stable/c/031278577380e7875d95aed81a2b2bcac39be923 git.kernel.org
Source: the record CVE-2026-99525 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse