CVE-2026-99539: Linux kernel · ksmbd: fix session reference leak on compounded SESSION_SETUP
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.1 Medium.
Data as of 25 Nov 2026, 00:25 UTC
Thin evidence
One scorer or noneCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-99539 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-99539 (opens in a new tab)
- git.kernel.org/linus/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65 (opens in a new tab)
- git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65 (opens in a new tab)
- git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5 (opens in a new tab)
- git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29 (opens in a new tab)
- git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2 (opens in a new tab)
- git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d (opens in a new tab)
- git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae (opens in a new tab)
- git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580 (opens in a new tab)