CVE-2024-35954: Linux kernel · scsi: sg: Avoid sg device teardown race
Source GCVE Database
Not known to be exploited · CVSS 4.7 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
Since this is a kernel-level issue, applying the official Linux kernel updates when available is recommended. Until a patch is released, avoid untrusted local code execution that could trigger this race condition.
Description
A medium severity vulnerability (CVE-2024-35954) in the Linux kernel's SCSI generic (sg) driver involves a race condition during device teardown. The function sg_remove_sfp_usercontext() improperly calls sg_device_destroy() after scsi_device_put(), leading to a NULL pointer dereference and kernel crash.
References
- nvd.nist.gov/vuln/detail/CVE-2024-35954 (opens in a new tab)
- git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d (opens in a new tab)
- git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022 (opens in a new tab)
- git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086 (opens in a new tab)