Kernel compromise via SMB session teardown race
Published May 19, 2024 · Updated Aug 5, 2026
A use-after-free in the SMB client of affected Linux kernel versions allows remote attackers to corrupt kernel memory via a malicious SMB server. The cifs_signal_cifsd_for_reconnect function walks the session list and accesses cifs_ses channel state while teardown can free the session and clear its server pointers. An already-mounted share is sufficient for a malicious or compromised SMB server to trigger kernel memory reads or writes, control-flow hijacking, or a panic without further user action.
Summary
What happened
A use-after-free in the SMB client of affected Linux kernel versions allows remote attackers to corrupt kernel memory via a malicious SMB server. The cifs_signal_cifsd_for_reconnect function walks the session list and accesses cifs_ses channel state while teardown can free the session and clear its server pointers. An already-mounted share is sufficient for a malicious or compromised SMB server to trigger kernel memory reads or writes, control-flow hijacking, or a panic without further user action.
The record
- CVE
- CVE-2024-35861
- Published
- May 19, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 19, 2024CVE 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=5.17.2 <5.18
- Affected versionversion=5.18
- Affected versionversion=dca65818c80cf06e0f08ba2cf94060a5236e73c2 <2cfff21732132e363b4cc275d63ea98f1af726c1
- Affected versionversion=dca65818c80cf06e0f08ba2cf94060a5236e73c2 <7e8360ac8774e19b0b25f44fff84a105bb2417e4
- Affected versionversion=dca65818c80cf06e0f08ba2cf94060a5236e73c2 <e0e50401cc3921c9eaf1b0e667db174519ea939f
- Affected versionversion=dca65818c80cf06e0f08ba2cf94060a5236e73c2 <f9a96a7ad1e8d25dc6662bc7552e0752de74a20d
- Affected versionversion=dd9ccff8c8980bf9ea7f25e83eeb28154f902920
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.
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