Kernel memory compromise via RPC handle race
Published Oct 28, 2025 · Updated Oct 28, 2025
A race condition in Linux ksmbd allows remote authenticated users to read or write kernel memory or crash the SMB server. ksmbd_session_rpc_open() modifies sess->rpc_handle_list under a read lock, while ksmbd_session_rpc_method() loads and dereferences entries without any lock. A valid low-privileged SMB session and concurrent pipe-handle requests reach the flaw; guest mapping can remove the credential gate.
Summary
What happened
A race condition in Linux ksmbd allows remote authenticated users to read or write kernel memory or crash the SMB server. ksmbd_session_rpc_open() modifies sess->rpc_handle_list under a read lock, while ksmbd_session_rpc_method() loads and dereferences entries without any lock. A valid low-privileged SMB session and concurrent pipe-handle requests reach the flaw; guest mapping can remove the credential gate.
The record
- CVE
- CVE-2025-40039
- Published
- Oct 28, 2025
- Updated
- Oct 28, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, T1210
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 28, 2025CVE publishedPublication date reported by the CVE source.
- Oct 28, 2025Record 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=052b41ef2abe274f068e892aee81406f11bd1f3a
- Affected versionversion=1f485b54d04a920723984062c912174330a05178
- Affected versionversion=6.3
- Affected versionversion=b685757c7b08d5073046fb379be965fd6c06aafc <305853cce379407090a73b38c5de5ba748893aee
- Affected versionversion=b685757c7b08d5073046fb379be965fd6c06aafc <5cc679ba0f4505936124cd4179ba66bb0a4bd9f3
- Affected versionversion=b685757c7b08d5073046fb379be965fd6c06aafc <6bd7e0e55dcea2cf0d391bbc21c2eb069b4be3e1
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