In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Avoid sg device teardown race sg_remove_sfp_usercontext() must not use… (CVE-2024-35954)
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.
AI Analysis
Technical Summary
CVE-2024-35954 is a vulnerability in the Linux kernel's SCSI generic (sg) subsystem where the function sg_remove_sfp_usercontext() calls sg_device_destroy() after scsi_device_put(). The call to scsi_device_put() can remove the last reference to the parent scsi_device, setting its request_queue pointer to NULL. Subsequently, sg_device_destroy() accesses this now NULL request_queue, causing a NULL pointer dereference that crashes the kernel. This is classified as a CWE-476 (NULL Pointer Dereference) issue. The vulnerability has a CVSS 3.1 base score of 4.7 (medium severity) with local attack vector, high attack complexity, low privileges required, no user interaction, unchanged scope, no confidentiality or integrity impact, but causes availability impact due to kernel crash.
Potential Impact
Exploitation of this vulnerability results in a NULL pointer dereference that crashes the Linux kernel, causing a denial of service (system crash). There is no impact on confidentiality or integrity. The attack requires local access with low privileges and is of high complexity, limiting the likelihood of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Avoid sg device teardown race sg_remove_sfp_usercontext() must not use… (CVE-2024-35954)
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.
CVSS v3.1
Score 4.7medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-35954 is a vulnerability in the Linux kernel's SCSI generic (sg) subsystem where the function sg_remove_sfp_usercontext() calls sg_device_destroy() after scsi_device_put(). The call to scsi_device_put() can remove the last reference to the parent scsi_device, setting its request_queue pointer to NULL. Subsequently, sg_device_destroy() accesses this now NULL request_queue, causing a NULL pointer dereference that crashes the kernel. This is classified as a CWE-476 (NULL Pointer Dereference) issue. The vulnerability has a CVSS 3.1 base score of 4.7 (medium severity) with local attack vector, high attack complexity, low privileges required, no user interaction, unchanged scope, no confidentiality or integrity impact, but causes availability impact due to kernel crash.
Potential Impact
Exploitation of this vulnerability results in a NULL pointer dereference that crashes the Linux kernel, causing a denial of service (system crash). There is no impact on confidentiality or integrity. The attack requires local access with low privileges and is of high complexity, limiting the likelihood of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v35f-xcmj-3g2x
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2024-35954"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a71feebbf8831d539ff12cb
Added to database: 08/04/2026, 15:02:03 UTC
Last enriched: 08/04/2026, 15:17:40 UTC
Last updated: 09/10/2026, 19:36:48 UTC
Views: 22
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.