{"id":"CVE-2026-99539","aliases":[],"title":"ksmbd: fix session reference leak on compounded SESSION_SETUP","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix session reference leak on compounded SESSION_SETUP\n\nA compound request can place SESSION_SETUP after another command. That\nearlier command leaves a reference to its session in work->sess.\nsmb2_sess_setup() then overwrites work->sess with the session it looks up\nor creates, and the dispatcher later puts work->sess only once. The\ninherited reference is never dropped. That leaks the session, together\nwith its setup connection and socket, and every repeat of the compound\nleaks another.\n\n  unreferenced object (size 512):\n    __kmalloc_cache_noprof+0x32c/0x3a0\n    ksmbd_smb2_session_create+0xf6/0x9c0 [ksmbd]\n    smb2_sess_setup+0xda4/0x6280 [ksmbd]\n    handle_ksmbd_work+0x88c/0x1cb0 [ksmbd]\n\nSave the inherited session on entry. After the request has been\nprocessed, release it once, but only when smb2_sess_setup() has replaced\nwork->sess with its own session or cleared it. Do this after\nksmbd_conn_unlock() so the put does not run under srv_mutex. An error path\nmay instead leave the inherited session in work->sess. Keep it there, so\nthe dispatcher still puts it and the error response is still signed or\nencrypted with it as before.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00206,"percentile":0.11261},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.15.171, <5.16","fixed":"5.16"},{"ecosystem":"Linux","name":"Kernel","range":">=6.1.114, <6.2","fixed":"6.2"},{"ecosystem":"Linux","name":"Kernel","range":">=6.11.5, <6.12","fixed":"6.12"},{"ecosystem":"Linux","name":"Kernel","range":">=6.12.0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"Linux","name":"Kernel","range":">=6.6.58, <6.7","fixed":"6.7"},{"ecosystem":"vendor","name":"Linux","range":">=0f62358ce85b2d4c949ef1b648be01b29cec667a, <a259b8f25de7b50d43fb94b29489d98848bba580","fixed":"a259b8f25de7b50d43fb94b29489d98848bba580"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.171, <5.15.226","fixed":"5.15.226"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.171, <5.16","fixed":"5.16"},{"ecosystem":"vendor","name":"Linux","range":">=5511999e9615e4318e9142d23b29bd1597befc08, <84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d","fixed":"84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.114, <6.1.193","fixed":"6.1.193"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.114, <6.2","fixed":"6.2"},{"ecosystem":"vendor","name":"Linux","range":">=6.11.5, <6.12","fixed":"6.12"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.58, <6.6.163","fixed":"6.6.163"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.58, <6.7","fixed":"6.7"},{"ecosystem":"vendor","name":"Linux","range":">=7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, <03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65","fixed":"03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65"},{"ecosystem":"vendor","name":"Linux","range":">=7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, <38cddb9f7c9102f23652d198748c658072cf0df5","fixed":"38cddb9f7c9102f23652d198748c658072cf0df5"},{"ecosystem":"vendor","name":"Linux","range":">=7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, <b2d710b12e86fd4cf02be090651fa6ea8683fc29","fixed":"b2d710b12e86fd4cf02be090651fa6ea8683fc29"},{"ecosystem":"vendor","name":"Linux","range":">=7aa8804c0b67b3cb263a472d17f2cb50d7f1a930, <db30f8f330fc73304edfe595dc5a6f5e17ba97f2","fixed":"db30f8f330fc73304edfe595dc5a6f5e17ba97f2"},{"ecosystem":"vendor","name":"Linux","range":">=a9839c37fd813b432988f58a9d9dd59253d3eb2c, <964c39f41c837fc2de221dcb860ff6451e17deae","fixed":"964c39f41c837fc2de221dcb860ff6451e17deae"}],"references":[{"url":"https://git.kernel.org/stable/c/b2d710b12e86fd4cf02be090651fa6ea8683fc29","type":"other"},{"url":"https://git.kernel.org/stable/c/38cddb9f7c9102f23652d198748c658072cf0df5","type":"other"},{"url":"https://git.kernel.org/stable/c/db30f8f330fc73304edfe595dc5a6f5e17ba97f2","type":"other"},{"url":"https://git.kernel.org/stable/c/03bd8f5279e490e15e0c0f0fa388ffbd2fbacd65","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99539.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99539","type":"advisory"},{"url":"https://git.kernel.org/stable/c/a259b8f25de7b50d43fb94b29489d98848bba580","type":"other"},{"url":"https://git.kernel.org/stable/c/964c39f41c837fc2de221dcb860ff6451e17deae","type":"other"},{"url":"https://git.kernel.org/stable/c/84deaeff31f4bdf5fee5c8dd1e3a4a49c3ffc05d","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.349Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99539","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.237Z"},{"name":"osv","at":"2026-11-19T17:23:41.557Z","url":"https://osv.dev/vulnerability/CVE-2026-99539","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T17:23:41.518Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:55.523Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99539","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:34.259Z"}],"firstSeenAt":"2026-11-19T15:00:34.259Z","publishedAt":"2026-11-19T14:44:54.387Z","modifiedAt":"2026-11-23T08:17:55.863Z"}