Skip to main content
EPSS 0.2%top 85%

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)

0
Medium
Published: 05/20/2024 (05/20/2024, 12:30:28 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/04/2026, 15:17:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses