Skip to content
Threat Brief

← All advisories

CVE-2026-99539

Severity unknownNo known exploitationFix available

ksmbd: fix session reference leak on compounded SESSION_SETUP

Record last updated

CVSS score

None

No score published yet

EPSS, chance of exploitation in 30 days

0.2%

Higher than 6% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Patching and mitigation

Patch status
Fix available (source: CVE record (Linux))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
No vendor link on record

Affected products

VendorProductAffected versionsFixed inPer
LinuxLinuxfrom 5.15.171 before 5.165.16CVE Program
LinuxLinuxfrom 6.1.114 before 6.26.2CVE Program
LinuxLinuxfrom 6.11.5 before 6.126.12CVE Program
LinuxLinuxfrom 6.6.58 before 6.76.7CVE Program
LinuxLinuxfrom 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 before b2d710b12e86fd4cf02be090651fa6ea8683fc29b2d710b12e86fd4cf02be090651fa6ea8683fc29CVE Program
LinuxLinuxfrom 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 before 38cddb9f7c9102f23652d198748c658072cf0df538cddb9f7c9102f23652d198748c658072cf0df5CVE Program
LinuxLinuxfrom 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 before db30f8f330fc73304edfe595dc5a6f5e17ba97f2db30f8f330fc73304edfe595dc5a6f5e17ba97f2CVE Program
LinuxLinuxfrom 7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 before 03bd8f5279e490e15e0c0f0fa388ffbd2fbacd6503bd8f5279e490e15e0c0f0fa388ffbd2fbacd65CVE Program
LinuxLinux0f62358ce85b2d4c949ef1b648be01b29cec667aNot documentedCVE Program
LinuxLinux5511999e9615e4318e9142d23b29bd1597befc08Not documentedCVE Program
LinuxLinux6.12Not documentedCVE Program
LinuxLinuxa9839c37fd813b432988f58a9d9dd59253d3eb2cNot documentedCVE Program
LinuxLinuxee371898b53a9b9b51c02d22a8c31bfb86d45f0dNot documentedCVE Program
LinuxLinux (unaffected)from 6.12.117 up to and including 6.12.*Not documentedCVE Program
LinuxLinux (unaffected)from 6.18.61 up to and including 6.18.*Not documentedCVE Program
LinuxLinux (unaffected)from 7.3.2 up to and including 7.3.*Not documentedCVE Program
LinuxLinux (unaffected)7.4-rc1Not documentedCVE Program
LinuxLinux (unaffected)all versions before 6.12Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by Linux

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (Linux)

    Source: CVE record (Linux) (opens in a new tab)

Vendor guidance and references