Session reference leak in Linux kernel ksmbd SESSION_SETUP
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The ksmbd SMB server in the Linux kernel is affected in versions from 5.15.171 before 5.15.226, from 6.1.114 before 6.1.193, from 6.6.58 before 6.6.163, from 6.11.5 before 6.12, and from 6.12. When a compound request places SESSION_SETUP after another command, the session reference inherited from that command is overwritten and never released. A client that sends such compound requests leaks a session with its setup connection and socket, and each repeat leaks another.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session reference leak on compounded SESSION_SETUP A compound request can place SESSION_SETUP after another command. That earlier command leaves a reference to its session in work->sess. smb2_sess_setup() then overwrites work->sess with the session it looks up or creates, and the dispatcher later puts work->sess only once. The inherited reference is never dropped. That leaks the session, together with its setup connection and socket, and every repeat of the compound leaks another. unreferenced object (size 512): __kmalloc_cache_noprof+0x32c/0x3a0 ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd] smb2_sess_setup+0xda4/0x6280 [ksmbd] handle_ksmbd_work+0x88c/0x1cb0 [ksmbd] Save the inherited session on entry. After the request has been processed, release it once, but only when smb2_sess_setup() has replaced work->sess with its own session or cleared it. Do this after ksmbd_conn_unlock() so the put does not run under srv_mutex. An error path may instead leave the inherited session in work->sess. Keep it there, so the dispatcher still puts it and the error response is still signed or encrypted with it as before.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.15.171 to before 5.15.226; 6.1.114 to before 6.1.193; 6.6.58 to before 6.6.163; 6.11.5 to before 6.12 | 5.15.226, 6.1.193, 6.6.163, 6.12 | Patch available | CNA |
| Linux | Linux | 6.12 and later | 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.15.171 to before 5.15.226; 6.1.114 to before 6.1.193; 6.6.58 to before 6.6.163; 6.11.5 to before 6.12 Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12 Patch available CNA
- Linux VendorLinux Affected 6.12 and later Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1 Patch available CNA
Remediation
Update the Linux kernel to a fixed version: 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12
- Fix · CNA Linux (Linux) Fixed in 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-19 Threatist record created from CVE-2026-99539
- 2026-11-19 Alias added: GHSA-42jx-q75f-j6j5
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-23 Fix available: Linux/[email protected], Linux/[email protected], Linux/[email protected] +3 · CNA
- 2026-11-23 3 new references · CNA
References
Other 7
- https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580
- https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae
- https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d
- https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29
- https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5
- https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2
- https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-99539 · CVE Program
- CVE-2026-99539 · NVD
- FIRST EPSS
- GHSA-42jx-q75f-j6j5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-99539 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences