CVE-2024-35954
JSON

7.8high

scsi: sg: Avoid sg device teardown race

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom db59133e927916d8a25ee1fd8264f2808040909d before 46af9047523e2517712ae8e71d984286c626e022, from db59133e927916d8a25ee1fd8264f2808040909d before b0d1ebcc1a9560e494ea9b3ee808540db26c5086, from db59133e927916d8a25ee1fd8264f2808040909d before 27f58c04a8f438078583041468ec60597841284d, 4cc664e59bf2553771e4c9e90f758f7434cfdc22, from 6.4.7 before 6.5, 6.5
Not affected: before 6.5, from 6.6.28 up to 6.6.*, from 6.8.7 up to 6.8.*, from 6.9 up to *
CVE List
linux linux_kernelfrom 6.4.7 before 6.6.28, from 6.7 before 6.8.7, 6.9NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: scsi: sg: Evite la ejecución de desmontaje del dispositivo sg sg_remove_sfp_usercontext() no debe usar sg_device_destroy() después de llamar a scsi_device_put(). sg_device_destroy() está accediendo al scsi_device principal request_queue que ya estará configurado en NULL cuando la llamada anterior a scsi_device_put() eliminó la última referencia al scsi_device principal. La excepción de puntero NULL resultante bloqueará el kernel.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-35954 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-35954 changed 2026-08-04Public domain