Vulnerability · Published Aug 19, 2025 · Assigned by Linux
CVE-2025-38561ksmbd: fix Preauh_HashValue race condition
Critical 9.8
In plain English
A critical-severity race condition 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.4% (higher than 39% 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 Preauh_HashValue race condition If client send multiple session setup requests to ksmbd, Preauh_HashValue race condition could happen. There is no need to free sess->Preauh_HashValue at session setup phase. It can be freed together with session at connection termination phase.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.148-1 | DEBIAN-CVE-2025-38561 |
| Debian:13 | linux | 6.12.43-1 | DEBIAN-CVE-2025-38561 |
| Debian:14 | linux | 6.16.3-1 | DEBIAN-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux | 5.15.0-168.178 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux | 5.15.0-168.178 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-94.96 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux | 6.8.0-94.96 | USN-8015-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1099.106 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1099.106 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1045.47 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1045.47 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1017.17~24.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1045.47~22.04.1 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1045.47~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1103.112 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1103.112 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1046.52 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-6.14 | 6.14.0-1017.17~24.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1109.118.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1046.53 | UBUNTU-CVE-2025-38561 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-fde-6.14 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1046.53~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1099.108 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1099.108 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1046.49 | USN-8015-4 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1046.49 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1020.21~24.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1046.49~22.04.1 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1046.49~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1095.101 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1095.101 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1042.47 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1042.47 | USN-8015-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1082.90 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1082.90 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1029.32 | USN-8015-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1029.32 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-94.96~22.04.1 | USN-8015-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-94.96~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1093.96 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1093.96 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1043.43 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1043.43 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1043.43~22.04.1 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1043.43~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-intel | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1094.100 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1094.100 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1091.96 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1091.96 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-168.178 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-168.178 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-94.96.1 | USN-8015-5 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-94.96.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-94.96.1~22.04.1 | USN-8015-4 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-94.96.1~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1094.95 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1094.95 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1045.48 | USN-8016-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1045.48 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1045.48~22.04.1 | USN-8016-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1045.48~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1045.48.1 | USN-8016-1 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1045.48.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1051.51 | USN-8013-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1051.51 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1020.20 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1040.40 | USN-8013-4 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1040.40 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1016.16 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1096.102 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1096.102 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1042.43 | USN-8015-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1042.43 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1017.17~24.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1042.43~22.04.1 | USN-8015-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1042.43~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1093.96 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1093.96 | USN-8013-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1045.49 | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1045.49 | USN-8015-1 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | 6.14.0-36.36.1~24.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-94.96~22.04.1 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-38561 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1022.23 | USN-8015-5 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1022.23 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1063.67 | UBUNTU-CVE-2025-38561 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1063.67 | USN-8013-4 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf – before fbf5c0845ed15122a770bca9be1d9b60b470d3aa0626e6641f6b467447c81dd7678a69c66f7746cf – before b69fd87076daa66f3d186bd421a7b0ee0cb458290626e6641f6b467447c81dd7678a69c66f7746cf – before edeecc7871e8fc0878d53ce286c75040a0e38f6c0626e6641f6b467447c81dd7678a69c66f7746cf – before 7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc0626e6641f6b467447c81dd7678a69c66f7746cf – before 6613887da1d18dd2ecfd6c6148a873c4d903ebdc0626e6641f6b467447c81dd7678a69c66f7746cf – before 44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6 |
| Linux | Linux | 5.15 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/fbf5c0845ed15122a770bca9be1d9b60b470d3aa
- https://git.kernel.org/stable/c/b69fd87076daa66f3d186bd421a7b0ee0cb45829
- https://git.kernel.org/stable/c/edeecc7871e8fc0878d53ce286c75040a0e38f6c
- https://git.kernel.org/stable/c/7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc
- https://git.kernel.org/stable/c/6613887da1d18dd2ecfd6c6148a873c4d903ebdc
- https://git.kernel.org/stable/c/44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6
- https://www.zerodayinitiative.com/advisories/ZDI-25-916/
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html