CVE-2025-37899
ksmbd: fix use-after-free in session logoff
HIGH 7.8EPSS 0.9%
In the Linux kernel, the following vulnerability has been resolved:ksmbd: fix use-after-free in session logoffThe sess->user object can currently be in use by another thread, forexample if another connection has sent a session setup request tobind to the session being free'd. The handler for that connection couldbe in the smb2_sess_setup function which makes use of sess->user.
- Affected
- Linux
- CVSS v3.1 NVD
- 7.8 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS v3.1 CNA
- 8.8 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.88% chance of exploitation in the next 30 days, 58th percentile
- Published
- 2025-05-20
- Updated
- 2026-08-05
Proof-of-concept exploits (3)
- https://news.ycombinator.com/item?id=44081338
- SeanHeelan/o3_finds_cve-2025-37899354★ · 2025-05-22
- vett3x/SMB-LINUX-CVE-2025-378990★ · 2025-06-09
Security advisories
- https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-v…
- https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43
- https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b
- https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f