CVE-2024-35954

Source
https://cve.org/CVERecord?id=CVE-2024-35954
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35954.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-35954
Downstream
Related
Published
2024-05-20T09:41:47.944Z
Modified
2026-03-20T12:36:45.540409Z
Summary
scsi: sg: Avoid sg device teardown race
Details

In the Linux kernel, the following vulnerability has been resolved:

scsi: sg: Avoid sg device teardown race

sgremovesfpusercontext() must not use sgdevicedestroy() after calling scsidevice_put().

sgdevicedestroy() is accessing the parent scsidevice requestqueue which will already be set to NULL when the preceding call to scsideviceput() removed the last reference to the parent scsi_device.

The resulting NULL pointer exception will then crash the kernel.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35954.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
db59133e927916d8a25ee1fd8264f2808040909d
Fixed
46af9047523e2517712ae8e71d984286c626e022
Fixed
b0d1ebcc1a9560e494ea9b3ee808540db26c5086
Fixed
27f58c04a8f438078583041468ec60597841284d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
4cc664e59bf2553771e4c9e90f758f7434cfdc22

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-35954.json"