# CVE-2026-99289: ksmbd: fix app-instance non-durable supersede session UAF

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.51% (percentile 37, 2026-11-28)
- **Published:** 2026-11-16T09:59:18.827Z
- **Modified:** 2026-11-19T14:17:29.993Z

## Who should check

- Anyone running Linux \>= 16c30649709d949b439273e61769028b1e706327, \< a5b190b352b0ba85f4debe436f42950ced10fadb; \>= 16c30649709d949b439273e61769028b1e706327, \< f728cfee6929057087c303d07d7a6a7c61196b48
- Anyone running Linux 7.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix app-instance non-durable supersede session UAF

ksmbd\_close\_fd\_app\_instance\_id() supersedes a prior open that has the
same AppInstanceId. It reaches that open's session through opinfo-\>sess.
This pointer is not refcounted.

Session teardown detaches durable handles before it frees the session.
It does not detach a non-durable open. That open still points at the
session through opinfo-\>sess after the session is freed. Another session
can supersede the open at the same time. The supersede then takes a
write lock through the stale pointer, in the freed session's file table.

  BUG: KASAN: slab-use-after-free in \_raw\_write\_lock+0x71/0xd0
  Call Trace:
   \_raw\_write\_lock+0x71/0xd0
   ksmbd\_close\_fd\_app\_instance\_id+0xd9/0x670 \[ksmbd\]
   smb2\_open+0x3e10/0xd910 \[ksmbd\]
  Freed by task 212:
   ksmbd\_session\_destroy+0x38d/0x480 \[ksmbd\]

Fix this by looking the session up by opinfo-\>session\_id. The lookup
returns a reference, as smb2\_break\_collect\_channels() does. Recheck that
opinfo-\>sess still points at it before using it.

Do the lookup without m\_lock held. destroy\_previous\_session() takes
m\_lock under the session table lock, and taking them in the other order
here would deadlock.

## Affected and fixed versions

- Linux: \>= 16c30649709d949b439273e61769028b1e706327, \< a5b190b352b0ba85f4debe436f42950ced10fadb; \>= 16c30649709d949b439273e61769028b1e706327, \< f728cfee6929057087c303d07d7a6a7c61196b48 (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99289.md
Affected: Linux >= 16c30649709d949b439273e61769028b1e706327, < a5b190b352b0ba85f4debe436f42950ced10fadb; >= 16c30649709d949b439273e61769028b1e706327, < f728cfee6929057087c303d07d7a6a7c61196b48; Linux 7.2
Fixed in: no fixed version listed yet

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-99289 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

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

Linux \>= 16c30649709d949b439273e61769028b1e706327, \< a5b190b352b0ba85f4debe436f42950ced10fadb; \>= 16c30649709d949b439273e61769028b1e706327, \< f728cfee6929057087c303d07d7a6a7c61196b48; Linux 7.2.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/a5b190b352b0ba85f4debe436f42950ced10fadb>
- other: <https://git.kernel.org/stable/c/f728cfee6929057087c303d07d7a6a7c61196b48>

## 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-99289>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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