← All Advisories
Reported from OT-Advisories.com as of

ksmbd AppInstanceId Supersede Race Leaves an Open Pointing at a Freed Session

Last refreshed2026-11-20

Status: UPDATED  |  Advisory ID: CVE-2026-99289

Key Details

CVECVE-2026-99289
CVSS Score / Version
8.8 (High) / CVSS v3.1
Updated2026-11-19
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is network; attack complexity is low; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Linux Kernel
Exploitation prediction (EPSS)
0.51% probability of exploitation in the next 30 days (44% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

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. (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-99289
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-99289
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.