CVE-2024-35954

published 20 May 2024 · updated 17 Nov 2026

scsi: sg: Avoid sg device teardown race

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel b0d1ebcc1a9560e494ea9b3ee808540db26c5086, Kernel 6.5, Kernel 27f58c04a8f438078583041468ec60597841284d and 3 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=db59133e927916d8a25ee1fd8264f2808040909d <b0d1ebcc1a9560e494ea9b3ee808540db26c5086, >=6.4.7 <6.5, >=db59133e927916d8a25ee1fd8264f2808040909d <27f58c04a8f438078583041468ec60597841284d, >=db59133e927916d8a25ee1fd8264f2808040909d <46af9047523e2517712ae8e71d984286c626e022, =4cc664e59bf2553771e4c9e90f758f7434cfdc22, =6.5b0d1ebcc1a9560e494ea9b3ee808540db26c5086, 6.5, 27f58c04a8f438078583041468ec60597841284d, 46af9047523e2517712ae8e71d984286c626e022
linux-kernel: Kernel>=6.5.0 <6.6.28, >=6.7.0 <6.8.7, >=6.4.7 <6.56.6.28, 6.8.7, 6.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-35954 severity on Zeptric[![CVE-2024-35954](https://zeptric.io/badge/cve/CVE-2024-35954.svg)](https://zeptric.io/cve/CVE-2024-35954)