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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 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_kernel | from 6.4.7 before 6.6.28, from 6.7 before 6.8.7, 6.9 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-35954 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-35954 changed 2026-08-04 | Public domain |