CVE-2026-99539
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | linux |
Fixed | 6.12.117-1 |
| sid | linux |
Fixed | 7.3.3-1 |
| forky | linux |
Fixed | 7.3.3-1 |
| bookworm | linux-6.12 |
Fixed | 6.12.117-1~deb12u1 |
| bookworm | linux |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| linux | linux | {"startIncluding":"5.15.171","endExcluding":"5.16"} | 5.16 |
| linux | linux | {"startIncluding":"6.1.114","endExcluding":"6.2"} | 6.2 |
| linux | linux | {"startIncluding":"6.6.58","endExcluding":"6.7"} | 6.7 |
| linux | linux | {"startIncluding":"6.11.5","endExcluding":"6.12"} | 6.12 |
| linux | linux | 6.12 | |
| linux | linux | {"startIncluding":"5.15.171","endExcluding":"5.15.226"} | 5.15.226 |
| linux | linux | {"startIncluding":"6.1.114","endExcluding":"6.1.193"} | 6.1.193 |
| linux | linux | {"startIncluding":"6.6.58","endExcluding":"6.6.163"} | 6.6.163 |
References
- https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65
- https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5
- https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29
- https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2
- https://security-tracker.debian.org/tracker/CVE-2026-99539
- https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d
- https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae
- https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580
- https://www.suse.com/security/cve/CVE-2026-99539.html
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.