{"id":"CVE-2024-35954","aliases":["CVE-2024-35954"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: sg: Avoid sg device teardown race","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: sg: Avoid sg device teardown race\n\nsg_remove_sfp_usercontext() must not use sg_device_destroy() after calling\nscsi_device_put().\n\nsg_device_destroy() is accessing the parent scsi_device request_queue which\nwill already be set to NULL when the preceding call to scsi_device_put()\nremoved the last reference to the parent scsi_device.\n\nThe resulting NULL pointer exception will then crash the kernel.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: sg: Avoid sg device teardown race\n\nsg_remove_sfp_usercontext() must not use sg_device_destroy() after calling\nscsi_device_put().\n\nsg_device_destroy() is accessing the parent scsi_device request_queue which\nwill already be set to NULL when the preceding call to scsi_device_put()\nremoved the last reference to the parent scsi_device.\n\nThe resulting NULL pointer exception will then crash the kernel.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-05-20T09:41:47.944Z","modified":"2026-08-05T11:31:11.820Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"db59133e927916d8a25ee1fd8264f2808040909d","fixed":"46af9047523e2517712ae8e71d984286c626e022","status":"affected"},{"type":"git","introduced":"db59133e927916d8a25ee1fd8264f2808040909d","fixed":"b0d1ebcc1a9560e494ea9b3ee808540db26c5086","status":"affected"},{"type":"git","introduced":"db59133e927916d8a25ee1fd8264f2808040909d","fixed":"27f58c04a8f438078583041468ec60597841284d","status":"affected"},{"type":"git","version":"4cc664e59bf2553771e4c9e90f758f7434cfdc22","status":"affected"},{"type":"semver","introduced":"6.4.7","fixed":"6.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"6.6.28","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.7","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.4.7","fixed":"6.6.28"},{"status":"affected","introduced":"6.7","fixed":"6.8.7"},{"status":"affected","version":"6.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-20T17:01:34.449Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35954","url":"https://www.cve.org/CVERecord?id=CVE-2024-35954","licence":"CVE Terms of Use","modified":"2026-08-05T11:31:11.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35954","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35954","licence":"Public domain","modified":"2026-08-04T11:18:15.050Z"}],"updatedAt":"2026-11-25T22:58:40.634Z","epss":{"score":0.00241,"percentile":0.16327,"date":"2026-12-01T12:00:22.000Z"}}