CVE-2025-38561
published critical CVSS 3.1 · 9.8ksmbd: fix Preauh_HashValue race condition
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < fbf5c0845ed15122a770bca9be1d9b60b470d3aa · 0626e6641f6b467447c81dd7678a69c66f7746cf to < b69fd87076daa66f3d186bd421a7b0ee0cb45829 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < edeecc7871e8fc0878d53ce286c75040a0e38f6c · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 6613887da1d18dd2ecfd6c6148a873c4d903ebdc · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.148 through 6.1.* (unaffected · semver) · 6.6.102 through 6.6.* (unaffected · semver) · 6.12.42 through 6.12.* (unaffected · semver) · 6.15.10 through 6.15.* (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.153-1~deb11u1 | DLA-4328-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-225.245~18.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux | Advisory build | 5.4.0-225.245 | LSN-0118-1 |
| Ubuntu | focal | linux-aws | Advisory build | 5.4.0-1154.164 | LSN-0118-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1099.106~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1099 | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1099 | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1099 | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1103.112~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1103 | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1103 | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1103 | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1051-nvidia-tegra | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1051-nvidia-tegra-rt | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1093-ibm | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1094-intel-iotg | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1096-oracle | Advisory build | 5.15.0-1096.102~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1099-aws | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1099-gcp | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1103-azure | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-168-generic-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-168-generic-lpae | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-168-lowlatency | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-168-lowlatency-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1094-intel-iotg | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1099-aws | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1103-azure | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-168-lowlatency | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1099.108~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1099 | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1099 | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-headers-5.15.0-1051-nvidia-tegra | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-1051-nvidia-tegra-rt | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-1093-ibm | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-1094-intel-iotg | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-1096-oracle | Advisory build | 5.15.0-1096.102~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-headers-5.15.0-1099-aws | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-headers-5.15.0-1099-gcp | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-headers-5.15.0-1103-azure | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-168-generic-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-168-generic-lpae | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-168-lowlatency | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-headers-5.15.0-168-lowlatency-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-168.178~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1093.96~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1093 | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1093 | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-5.15.0-168-generic-lpae | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1051-nvidia-tegra | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1051-nvidia-tegra-rt | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1093-ibm | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1094-intel-iotg | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1096-oracle | Advisory build | 5.15.0-1096.102~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1099-aws | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1099-gcp | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1103-azure | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-168-generic-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-168-lowlatency | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-168-lowlatency-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1094 | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1094 | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1094 | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-168.178~20.04.1 | LSN-0118-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-168 | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-1051-nvidia-tegra | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-1051-nvidia-tegra-rt | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-1093-ibm | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-1094-intel-iotg | Advisory build | 5.15.0-1094.100~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-1096-oracle | Advisory build | 5.15.0-1096.102~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-modules-5.15.0-1099-aws | Advisory build | 5.15.0-1099.106~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-modules-5.15.0-1099-gcp | Advisory build | 5.15.0-1099.108~20.04.1 | USN-8013-4 |
| Ubuntu | focal | linux-modules-5.15.0-1103-azure | Advisory build | 5.15.0-1103.112~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-168-generic | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-168-generic-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-168-generic-lpae | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-168-lowlatency | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-5.15.0-168-lowlatency-64k | Advisory build | 5.15.0-168.178~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1051-nvidia-tegra | Advisory build | 5.15.0-1051.51~20.04.1 | USN-8013-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1093-ibm | Advisory build | 5.15.0-1093.96~20.04.1 | USN-8013-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - ksmbd is the in-kernel SMB server listening on TCP/445, and the entire path is driven by remote SMB2 SESSION_SETUP PDUs parsed straight off the socket. Internet- and LAN-facing NAS, container, and file-server deployments are directly exposed. AC:L - The attacker controls both sides of the race completely — how many SESSION_SETUP PDUs to pipeline, across how many TCP connections, whether to use multichannel binding to bypass the per-connection mutex entirely, and when to drop the socket to race connection teardown. ksmbd's non-ordered workqueue guarantees parallel processing, and failed attempts cost only a reconnect. PR:N - SESSION_SETUP is the authentication handshake itself; the buffer is allocated, hashed, and read on the response path before any credential is verified, and the NtLmNegotiate racer is fully pre-authentication. The guest branch of ntlm_authenticate() skips the NTLM blob check entirely, reaching the vulnerable kfree() with no credentials on the common guest-mapped share configuration. UI:N - Exploitation requires only that the attacker connect to the SMB port and send session setup requests. No action by any local user or administrator is needed. S:U - The double free and use-after-free corrupt kernel heap memory within the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The freed 64-byte chunk is read back via sha512_update() and, decisively, serves as the KDF context for the SMB 3.1.1 signing and encryption keys — reclaiming it with chosen content yields attacker-known session keys and decryption of other clients' traffic. The double free of a general-purpose kmalloc-64 object is also a standard route to a full arbitrary-read primitive. I:H - This is a double free of a kmalloc-64 object plus a 64-byte out-of-lifetime write (sha512_final into the freed buffer) that clobbers whatever victim object reclaimed the slot, giving the classic heap-grooming path to arbitrary write and control-flow hijack. It additionally enables forging signed SMB messages by controlling the signing-key derivation context. A:H - The double free corrupts the SLUB freelist and the use-after-free write smashes reclaimed objects, both of which panic the kernel. The racing NULL store also reaches ksmbd_gen_smb311_encryptionkey()/ksmbd_gen_smb311_signingkey(), which dereference sess->Preauth_HashValue with no NULL check, for a trivially repeatable remote oops.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.5 | high | CISA-ADP · adp | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < fbf5c0845ed15122a770bca9be1d9b60b470d3aa (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < b69fd87076daa66f3d186bd421a7b0ee0cb45829 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < edeecc7871e8fc0878d53ce286c75040a0e38f6c (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 6613887da1d18dd2ecfd6c6148a873c4d903ebdc (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.148 through 6.1.* (unaffected · semver)6.6.102 through 6.6.* (unaffected · semver)6.12.42 through 6.12.* (unaffected · semver)6.15.10 through 6.15.* (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-362 CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
8- https://git.kernel.org/stable/c/44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6
- https://git.kernel.org/stable/c/6613887da1d18dd2ecfd6c6148a873c4d903ebdc
- https://git.kernel.org/stable/c/7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc
- https://git.kernel.org/stable/c/b69fd87076daa66f3d186bd421a7b0ee0cb45829
- https://git.kernel.org/stable/c/edeecc7871e8fc0878d53ce286c75040a0e38f6c
- https://git.kernel.org/stable/c/fbf5c0845ed15122a770bca9be1d9b60b470d3aa
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- https://www.zerodayinitiative.com/advisories/ZDI-25-916/
Provider assertions
3Linux · cna
ksmbd: fix Preauh_HashValue race condition
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0169cfd150c70e852fa83c95d4da206639542c4e71293ecb63ce35b385ba8b5c
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record