CVE-2026-99539
ksmbd: fix session reference leak on compounded SESSION_SETUP
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 0f62358ce85b2d4c949ef1b648be01b29cec667a, < a259b8f25de7b50d43fb94b29489d98848bba580; >= a9839c37fd813b432988f58a9d9dd59253d3eb2c, < 964c39f41c837fc2de221dcb860ff6451e17deae; >= 5511999e9615e4318e9142d23b29bd1597befc08, < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < b2d710b12e86fd4cf02be090651fa6ea8683fc29; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 38cddb9f7c9102f23652d198748c658072cf0df5; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < db30f8f330fc73304edfe595dc5a6f5e17ba97f2; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65; ee371898b53a9b9b51c02d22a8c31bfb86d45f0d; >= 5.15.171, < 5.15.226; >= 6.1.114, < 6.1.193; …
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= 0f62358ce85b2d4c949ef1b648be01b29cec667a, < a259b8f25de7b50d43fb94b29489d98848bba580; >= a9839c37fd813b432988f58a9d9dd59253d3eb2c, < 964c39f41c837fc2de221dcb860ff6451e17deae; >= 5511999e9615e4318e9142d23b29bd1597befc08, < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < b2d710b12e86fd4cf02be090651fa6ea8683fc29; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 38cddb9f7c9102f23652d198748c658072cf0df5; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < db30f8f330fc73304edfe595dc5a6f5e17ba97f2; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65; ee371898b53a9b9b51c02d22a8c31bfb86d45f0d; >= 5.15.171, < 5.15.226; >= 6.1.114, < 6.1.193; …; Linux 6.12
- Fixed in
- Linux 964c39f41c837fc2de221dcb860ff6451e17deae, Linux 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d, Linux 38cddb9f7c9102f23652d198748c658072cf0df5, Linux 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65, Linux 5.15.226, Linux 6.1.193
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 7, 2026-11-28)
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0f62358ce85b2d4c949ef1b648be01b29cec667a, < a259b8f25de7b50d43fb94b29489d98848bba580; >= a9839c37fd813b432988f58a9d9dd59253d3eb2c, < 964c39f41c837fc2de221dcb860ff6451e17deae; >= 5511999e9615e4318e9142d23b29bd1597befc08, < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < b2d710b12e86fd4cf02be090651fa6ea8683fc29; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 38cddb9f7c9102f23652d198748c658072cf0df5; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < db30f8f330fc73304edfe595dc5a6f5e17ba97f2; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65; ee371898b53a9b9b51c02d22a8c31bfb86d45f0d; >= 5.15.171, < 5.15.226; >= 6.1.114, < 6.1.193; … | — | cvelist |
| Linux | 6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-99539. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-99539.md Affected: Linux >= 0f62358ce85b2d4c949ef1b648be01b29cec667a, < a259b8f25de7b50d43fb94b29489d98848bba580; >= a9839c37fd813b432988f58a9d9dd59253d3eb2c, < 964c39f41c837fc2de221dcb860ff6451e17deae; >= 5511999e9615e4318e9142d23b29bd1597befc08, < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d; >= 7aa8804c0b67b3cb263a472… Fixed in: Linux 964c39f41c837fc2de221dcb860ff6451e17deae, Linux 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d, Linux 38cddb9f7c9102f23652d198748c658072cf0df5, Linux 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65, Linux 5.15.226, Linux 6.1.193 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.
Technologies
References
Other
- 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
FAQ
Is CVE-2026-99539 being exploited?
There is no confirmed exploitation: CVE-2026-99539 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-99539?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-99539?
Linux >= 0f62358ce85b2d4c949ef1b648be01b29cec667a, < a259b8f25de7b50d43fb94b29489d98848bba580; >= a9839c37fd813b432988f58a9d9dd59253d3eb2c, < 964c39f41c837fc2de221dcb860ff6451e17deae; >= 5511999e9615e4318e9142d23b29bd1597befc08, < 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < b2d710b12e86fd4cf02be090651fa6ea8683fc29; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 38cddb9f7c9102f23652d198748c658072cf0df5; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < db30f8f330fc73304edfe595dc5a6f5e17ba97f2; >= 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, < 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65; ee371898b53a9b9b51c02d22a8c31bfb86d45f0d; >= 5.15.171, < 5.15.226; >= 6.1.114, < 6.1.193; …; Linux 6.12.
Is there a fix for CVE-2026-99539?
Yes. Fixed in Linux 964c39f41c837fc2de221dcb860ff6451e17deae, Linux 84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d, Linux 38cddb9f7c9102f23652d198748c658072cf0df5, Linux 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65, Linux 5.15.226, Linux 6.1.193. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-99539?
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 7.0 | CVE-2026-137974 Tuned: local privilege escalation through untrusted mount table parsing in the spindown-disk profile | Linux kernel+1 | EPSS 31% | |
| HIGH 7.8 | CVE-2026-137941 Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property | Linux kernel+1 | EPSS 11% | |
| HIGH 7.3 | CVE-2026-137898 Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling | Linux kernel+1 | EPSS 11% | |
| MEDIUM 6.5 | CVE-2026-102963 Use-after-return in getaddrinfo() when a DNS query that followed a CNAME cannot be cancelled | Linux kernel+1 | EPSS 24% | |
| MEDIUM 5.3 | CVE-2026-115841 Sequoia-openpgp: sequoia-openpgp: degenerate dsa keys are accepted on the nettle and openssl backendsa | Linux kernel+4 | EPSS 3% |