Vulnerability · Published May 20, 2025 · Assigned by Linux
CVE-2025-37899ksmbd: fix use-after-free in session logoff
High 8.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.159-1 | DEBIAN-CVE-2025-37899 |
| Debian:13 | linux | 6.12.29-1 | DEBIAN-CVE-2025-37899 |
| Debian:14 | linux | 6.12.29-1 | DEBIAN-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux | 6.8.0-101.101 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux | 6.8.0-101.101 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-aws | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1047.50 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1047.50 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1009.9~24.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1009.9~24.04.1 | USN-7665-2 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1047.50~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1047.50~22.04.1 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-azure | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1051.57 | USN-8125-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1051.57 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1058.65 | UBUNTU-CVE-2025-37899 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1058.65~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1048.51 | USN-8059-3 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1048.51 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1011.11~24.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1048.51~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1048.51~22.04.1 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-gke | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1044.49 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1044.49 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-gkeop | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1031.34 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1031.34 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-101.101~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-101.101~22.04.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-ibm | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1045.45 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1045.45 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1045.45~22.04.1 | USN-8059-6 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1045.45~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-intel-iotg | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-kvm | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-lowlatency | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-101.101.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-101.101.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-101.101.1~22.04.1 | USN-8059-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-101.101.1~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1047.50 | USN-8059-8 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1047.50 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1047.50~22.04.1 | USN-8059-8 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1047.50~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1047.50.1 | USN-8059-8 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1047.50.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1020.20 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1007.7 | USN-7650-1 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1007.7 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oracle | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1044.45 | USN-8059-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1044.45 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1009.9~24.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1044.45~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1044.45~22.04.1 | USN-8059-3 |
| Ubuntu:22.04:LTS | linux-raspi | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1048.52 | USN-8059-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1048.52 | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | 6.14.0-24.24.1~24.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-101.101~22.04.1 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-37899 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1024.25 | USN-8059-6 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1024.25 | UBUNTU-CVE-2025-37899 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | no fix listed | UBUNTU-CVE-2025-37899 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf – before 931dc8a3670f71c45c0b1379ea4e92dafbda1aca0626e6641f6b467447c81dd7678a69c66f7746cf – before 70ad6455139e26e85f48f95d0e21f351c19093420626e6641f6b467447c81dd7678a69c66f7746cf – before d5ec1d79509b3ee01de02c236f096bc050221b7f0626e6641f6b467447c81dd7678a69c66f7746cf – before 02d16046cd11a5c037b28c12ffb818c56dd3ef430626e6641f6b467447c81dd7678a69c66f7746cf – before 2fc9feff45d92a92cd5f96487655d5be23fb7e2b |
| Linux | Linux | 5.15 |
References
- 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