# CVE-2026-99525: smb: client: fix use-after-free in cifs\_ses\_add\_channel()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:44:37.402Z
- **Modified:** 2026-11-23T08:17:54.580Z

## Who should check

- Anyone running Linux \>= e341b7975bd72d3ebda92b8d747d0aad15ce8717, \< 093a42a31ae8bb26da7f4a358f83300d76d0c46b; \>= 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, \< 4bc20a4ccdbdbe14e8628073109c52a22d7512d1; \>= ee1d21794e55ab76505745d24101331552182002, \< d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99; \>= ee1d21794e55ab76505745d24101331552182002, \< 8069935474b1502459ab50f75a67d7394a93cd5d; \>= ee1d21794e55ab76505745d24101331552182002, \< 72367dacb5c9d8bd486b2fcaf56b6d3086d57250; \>= ee1d21794e55ab76505745d24101331552182002, \< 031278577380e7875d95aed81a2b2bcac39be923; \>= 6.1.178, \< 6.1.193; \>= 6.6.15, \< 6.6.163
- Anyone running Linux 6.7

## 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.

## Affected and fixed versions

- Linux: \>= e341b7975bd72d3ebda92b8d747d0aad15ce8717, \< 093a42a31ae8bb26da7f4a358f83300d76d0c46b; \>= 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, \< 4bc20a4ccdbdbe14e8628073109c52a22d7512d1; \>= ee1d21794e55ab76505745d24101331552182002, \< d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99; \>= ee1d21794e55ab76505745d24101331552182002, \< 8069935474b1502459ab50f75a67d7394a93cd5d; \>= ee1d21794e55ab76505745d24101331552182002, \< 72367dacb5c9d8bd486b2fcaf56b6d3086d57250; \>= ee1d21794e55ab76505745d24101331552182002, \< 031278577380e7875d95aed81a2b2bcac39be923; \>= 6.1.178, \< 6.1.193; \>= 6.6.15, \< 6.6.163 (cvelist)
- Linux: 6.7 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6.6.163 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99525. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99525.md
Affected: Linux >= e341b7975bd72d3ebda92b8d747d0aad15ce8717, < 093a42a31ae8bb26da7f4a358f83300d76d0c46b; >= 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, < 4bc20a4ccdbdbe14e8628073109c52a22d7512d1; >= ee1d21794e55ab76505745d24101331552182002, < d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99; >= ee1d21794e55ab76505745d…
Fixed in: Linux 093a42a31ae8bb26da7f4a358f83300d76d0c46b, Linux 4bc20a4ccdbdbe14e8628073109c52a22d7512d1, Linux 8069935474b1502459ab50f75a67d7394a93cd5d, Linux 72367dacb5c9d8bd486b2fcaf56b6d3086d57250, Linux 031278577380e7875d95aed81a2b2bcac39be923, Linux 6.1.193, Linux 6.6.163

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99525 being exploited?

There is no confirmed exploitation: CVE-2026-99525 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99525?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99525?

Linux \>= e341b7975bd72d3ebda92b8d747d0aad15ce8717, \< 093a42a31ae8bb26da7f4a358f83300d76d0c46b; \>= 3e1615361b6fa6e6e0bfae0efb3a8c2255ac101f, \< 4bc20a4ccdbdbe14e8628073109c52a22d7512d1; \>= ee1d21794e55ab76505745d24101331552182002, \< d88e3e844fad0f6b9fbeb8c8862f9272a7c26a99; \>= ee1d21794e55ab76505745d24101331552182002, \< 8069935474b1502459ab50f75a67d7394a93cd5d; \>= ee1d21794e55ab76505745d24101331552182002, \< 72367dacb5c9d8bd486b2fcaf56b6d3086d57250; \>= ee1d21794e55ab76505745d24101331552182002, \< 031278577380e7875d95aed81a2b2bcac39be923; \>= 6.1.178, \< 6.1.193; \>= 6.6.15, \< 6.6.163; Linux 6.7.

### Is there a fix for CVE-2026-99525?

Yes. Fixed in Linux 093a42a31ae8bb26da7f4a358f83300d76d0c46b, Linux 4bc20a4ccdbdbe14e8628073109c52a22d7512d1, Linux 8069935474b1502459ab50f75a67d7394a93cd5d, Linux 72367dacb5c9d8bd486b2fcaf56b6d3086d57250, Linux 031278577380e7875d95aed81a2b2bcac39be923, Linux 6.1.193, Linux 6.6.163. Upgrade Linux to 6.6.163 or later.

### How do I check if I'm affected by CVE-2026-99525?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/093a42a31ae8bb26da7f4a358f83300d76d0c46b>
- other: <https://git.kernel.org/stable/c/4bc20a4ccdbdbe14e8628073109c52a22d7512d1>
- other: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99525>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99525> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99525>
