CVE-2024-35954

scsi: sg: Avoid sg device teardown race

MEDIUM
4.7
CVSS Score
Published: May 20, 2024 at 09:41 AM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: sg: Avoid sg device teardown race sg_remove_sfp_usercontext() must not use sg_device_destroy() after calling scsi_device_put(). sg_device_destroy() is accessing the parent scsi_device request_queue which will already be set to NULL when the preceding call to scsi_device_put() removed the last reference to the parent scsi_device. The resulting NULL pointer exception will then crash the kernel.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.4.76.4.7 ≤ v < 6.56.4.7 ≤ v < 6.6.286.5 ≤ v < 6.6.286.5 ≤ v < 6.8.76.5 ≤ v < 6.96.7 ≤ v < 6.8.74cc664e59bf2553771e4c9e90f758f7434cfdc226.4.76.9 rc1db59133e927916d8a25ee1fd8264f2808040909d
Vendor states this is fixed in 27f58c04a8f438078583041468ec60597841284d (fixed)
Vendor states this is fixed in 46af9047523e2517712ae8e71d984286c626e022 (fixed)
Vendor states this is fixed in b0d1ebcc1a9560e494ea9b3ee808540db26c5086 (fixed)
Vendor states this is fixed in 6.5 (unaffected)
Vendor states this is fixed in 6.6.28 (unaffected)
Vendor states this is fixed in 6.8.7 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card