{"id":"CVE-2025-37899","aliases":["CVE-2025-37899"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix use-after-free in session logoff","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in session logoff\n\nThe sess->user 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->user.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in session logoff\n\nThe sess->user 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->user.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: corrección del problema \"use-after-free\" al cerrar sesión. El objeto sess-&gt;user puede estar siendo utilizado por otro hilo, por ejemplo, si otra conexión ha enviado una solicitud de configuración de sesión para enlazarse a la sesión que se está liberando. El controlador de esa conexión podría estar en la función smb2_sess_setup, que utiliza sess-&gt;user.","source":"nvd"}],"published":"2025-05-20T15:21:34.782Z","modified":"2026-08-05T11:58:10.107Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"931dc8a3670f71c45c0b1379ea4e92dafbda1aca","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"70ad6455139e26e85f48f95d0e21f351c1909342","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"d5ec1d79509b3ee01de02c236f096bc050221b7f","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"02d16046cd11a5c037b28c12ffb818c56dd3ef43","status":"affected"},{"type":"git","introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf","fixed":"2fc9feff45d92a92cd5f96487655d5be23fb7e2b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.119","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.28","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.6","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15","fixed":"6.12.28"},{"status":"affected","introduced":"6.13","fixed":"6.14.6"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b","tags":["patch"],"sources":["cvelist","nvd"]},{"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/","tags":["exploit","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://news.ycombinator.com/item?id=44081338","tags":["exploit","issue-tracking","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37899","url":"https://www.cve.org/CVERecord?id=CVE-2025-37899","licence":"CVE Terms of Use","modified":"2026-08-05T11:58:10.107Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37899","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37899","licence":"Public domain","modified":"2026-07-30T06:22:30.547Z"}],"updatedAt":"2026-11-25T22:58:58.276Z","epss":{"score":0.00832,"percentile":0.54856,"date":"2026-11-30T12:00:22.000Z"}}