{"id":"CVE-2024-35954","published":"2024-05-20T09:41:47Z","modified":"2026-08-05T11:31:11Z","title":"scsi: sg: Avoid sg device teardown race","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00241,"percentile":0.15529,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/46af9047523e2517712ae8e71d984286c626e022","tags":[]},{"url":"https://git.kernel.org/stable/c/b0d1ebcc1a9560e494ea9b3ee808540db26c5086","tags":[]},{"url":"https://git.kernel.org/stable/c/27f58c04a8f438078583041468ec60597841284d","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.11},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= db59133e927916d8a25ee1fd8264f2808040909d, < 46af9047523e2517712ae8e71d984286c626e022",">= db59133e927916d8a25ee1fd8264f2808040909d, < b0d1ebcc1a9560e494ea9b3ee808540db26c5086",">= db59133e927916d8a25ee1fd8264f2808040909d, < 27f58c04a8f438078583041468ec60597841284d","4cc664e59bf2553771e4c9e90f758f7434cfdc22",">= 6.4.7, < 6.5"]},{"vendor":"Linux","product":"Linux","versions":["6.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-20T17:01:34.449905Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-35672","exploited":false,"provenance":"source"}}