Kernel crash via SCSI device teardown race
Published May 20, 2024 · Updated Aug 5, 2026
Race condition in the SCSI generic driver in Linux allows local users to crash the kernel during concurrent device teardown. sg_remove_sfp_usercontext() drops the final scsi_device reference before sg_device_destroy() reads its request_queue, leaving a NULL parent queue. Triggering the fault requires local access to an sg device and a concurrent close and device-removal sequence; the resulting kernel exception interrupts the host.
Summary
What happened
Race condition in the SCSI generic driver in Linux allows local users to crash the kernel during concurrent device teardown. sg_remove_sfp_usercontext() drops the final scsi_device reference before sg_device_destroy() reads its request_queue, leaving a NULL parent queue. Triggering the fault requires local access to an sg device and a concurrent close and device-removal sequence; the resulting kernel exception interrupts the host.
The record
- CVE
- CVE-2024-35954
- Published
- May 20, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-476, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 20, 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=4cc664e59bf2553771e4c9e90f758f7434cfdc22
- Affected versionversion=6.4.7 <6.5
- Affected versionversion=6.5
- Affected versionversion=db59133e927916d8a25ee1fd8264f2808040909d <27f58c04a8f438078583041468ec60597841284d
- Affected versionversion=db59133e927916d8a25ee1fd8264f2808040909d <46af9047523e2517712ae8e71d984286c626e022
- Affected versionversion=db59133e927916d8a25ee1fd8264f2808040909d <b0d1ebcc1a9560e494ea9b3ee808540db26c5086
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
- syzbot sg_remove_sfp_usercontext C reproducerproof of concept · demonstrated
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