{"id":"CVE-2025-37899","summary":"ksmbd: fix use-after-free in session logoff","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in session logoff\n\nThe sess-\u003euser object can currently be in use by another thread, for\nexample if another connection has sent a session setup request to\nbind to the session being free'd. The handler for that connection could\nbe in the smb2_sess_setup function which makes use of sess-\u003euser.","modified":"2026-08-12T03:51:30.035885444Z","published":"2025-05-20T15:21:34.782Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37899.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342"},{"type":"WEB","url":"https://git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f"},{"type":"WEB","url":"https://news.ycombinator.com/item?id=44081338"},{"type":"WEB","url":"https://sean.heelan.io/2025/05/22/how-i-used-o3-to-find-cve-2025-37899-a-remote-zeroday-vulnerability-in-the-linux-kernels-smb-implementation/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37899.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37899"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"931dc8a3670f71c45c0b1379ea4e92dafbda1aca"},{"fixed":"70ad6455139e26e85f48f95d0e21f351c1909342"},{"fixed":"d5ec1d79509b3ee01de02c236f096bc050221b7f"},{"fixed":"02d16046cd11a5c037b28c12ffb818c56dd3ef43"},{"fixed":"2fc9feff45d92a92cd5f96487655d5be23fb7e2b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37899.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.28"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37899.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}