Linux
ksmbd: fix use-after-free in session logoff
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in session logoff The sess->user object can currently be in use by another thread, for example if another connection has sent a session setup request to bind to the session being free'd. The handler for that connection could be in the smb2_sess_setup function which makes use of sess->user.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 931dc8a3670f71c45c0b1379ea4e92dafbda1aca
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 70ad6455139e26e85f48f95d0e21f351c1909342
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5ec1d79509b3ee01de02c236f096bc050221b7f
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 02d16046cd11a5c037b28c12ffb818c56dd3ef43
- >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 2fc9feff45d92a92cd5f96487655d5be23fb7e2b
Fixed in 931dc8a3670f71c45c0b1379ea4e92dafbda1aca, 70ad6455139e26e85f48f95d0e21f351c1909342, d5ec1d79509b3ee01de02c236f096bc050221b7f, 02d16046cd11a5c037b28c12ffb818c56dd3ef43, 2fc9feff45d92a92cd5f96487655d5be23fb7e2b
- 5.15
Fixed in 0, 6.1.159, 6.6.119, 6.12.28, 6.14.6, 6.15
Mitigation
Upgrade Linux to 931dc8a3670f71c45c0b1379ea4e92dafbda1aca or 70ad6455139e26e85f48f95d0e21f351c1909342 or d5ec1d79509b3ee01de02c236f096bc050221b7f or 02d16046cd11a5c037b28c12ffb818c56dd3ef43 or 2fc9feff45d92a92cd5f96487655d5be23fb7e2b or later.
Upgrade Linux to 0 or 6.1.159 or 6.6.119 or 6.12.28 or 6.14.6 or 6.15 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.3 informational
Informational 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| SeanHeelan/o3_finds_cve-2025-37899 | 22 May 2025 +1.8 d | 354 | Informational · write-up |
| vett3x/SMB-LINUX-CVE-2025-37899 | 9 Jun 2025 +20 d | 0 | Informational · write-up |
| ccss17/o3_finds_cve-2025-37899 | 11 Sep 2025 +114 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.