# CVE-2025-37899: ksmbd: fix use-after-free in session logoff

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-05-20 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2025-37899, DEBIAN-CVE-2025-37899
- Record: https://cvemate.com/vulnerability/CVE-2025-37899 · JSON: https://cvemate.com/vulnerability/CVE-2025-37899/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.897%, percentile 60.824%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected (first 20 of 137)

- debian linux (Debian): \< 6.1.159-1 \| \< 6.12.29-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-101.101
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1047.50
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1009.9~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1047.50~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1047.50+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1051.57
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 28)

- <https://git.kernel.org/stable/c/931dc8a3670f71c45c0b1379ea4e92dafbda1aca>
- <https://git.kernel.org/stable/c/70ad6455139e26e85f48f95d0e21f351c1909342>
- <https://git.kernel.org/stable/c/d5ec1d79509b3ee01de02c236f096bc050221b7f>
- <https://git.kernel.org/stable/c/02d16046cd11a5c037b28c12ffb818c56dd3ef43>
- <https://git.kernel.org/stable/c/2fc9feff45d92a92cd5f96487655d5be23fb7e2b>
- <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/>
- <https://news.ycombinator.com/item?id=44081338>
- <https://ubuntu.com/security/CVE-2025-37899>
- <https://www.cve.org/CVERecord?id=CVE-2025-37899>
- <https://git.kernel.org/linus/2fc9feff45d92a92cd5f96487655d5be23fb7e2b>
- <https://ubuntu.com/security/notices/USN-7649-1>
- <https://ubuntu.com/security/notices/USN-7650-1>
- <https://ubuntu.com/security/notices/USN-7649-2>
- <https://ubuntu.com/security/notices/USN-7665-1>
- <https://ubuntu.com/security/notices/USN-7665-2>
- <https://ubuntu.com/security/notices/USN-7721-1>
- <https://ubuntu.com/security/notices/USN-8059-1>
- <https://ubuntu.com/security/notices/USN-8059-2>
- <https://ubuntu.com/security/notices/USN-8059-3>
- <https://ubuntu.com/security/notices/USN-8059-4>

---

Data as of 2026-12-05T04:21:26.062Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
