Kernel code execution via Preauth_HashValue lifetime race
Published Aug 19, 2025 · Updated Aug 5, 2026
Race condition in Linux ksmbd allows remote attackers to execute kernel code via concurrent SMB2 SESSION_SETUP requests. smb2_sess_setup frees sess->Preauth_HashValue during session setup without proper synchronization, allowing parallel requests to reuse, double-free, and write through the freed kernel-heap object. The pre-authentication path is reachable on TCP port 445 when ksmbd is running; exploitation can disclose SMB session keys, corrupt kernel memory, or crash the host.
Summary
What happened
Race condition in Linux ksmbd allows remote attackers to execute kernel code via concurrent SMB2 SESSION_SETUP requests. smb2_sess_setup frees sess->Preauth_HashValue during session setup without proper synchronization, allowing parallel requests to reuse, double-free, and write through the freed kernel-heap object. The pre-authentication path is reachable on TCP port 445 when ksmbd is running; exploitation can disclose SMB session keys, corrupt kernel memory, or crash the host.
The record
- CVE
- CVE-2025-38561
- Published
- Aug 19, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 19, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <6613887da1d18dd2ecfd6c6148a873c4d903ebdc
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <b69fd87076daa66f3d186bd421a7b0ee0cb45829
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <edeecc7871e8fc0878d53ce286c75040a0e38f6c
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <fbf5c0845ed15122a770bca9be1d9b60b470d3aa
- Affected versionversion=5.15
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo