CVE-2024-35954

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*

History

17 Jun 2026, 07:35

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.7
First Time Linux linux Kernel
Linux
References () https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d - () https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d - Patch
References () https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022 - () https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022 - Patch
References () https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086 - () https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086 - Patch
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
CWE CWE-476

21 Nov 2024, 09:21

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d - () https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d -
References () https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022 - () https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022 -
References () https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086 - () https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086 -
Summary
  • (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.

20 May 2024, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-20 10:15

Updated : 2026-06-17 07:35


NVD link : CVE-2024-35954

Mitre link : CVE-2024-35954

CVE.ORG link : CVE-2024-35954


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference