CVE-2024-35954

Source
https://cve.org/CVERecord?id=CVE-2024-35954
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35954.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35954
Downstream
BELL (1)
DEBIAN (1)
RHSA (1)
SUSE (7)
UBUNTU (1)
Related
Published
2024-05-20T09:41:47Z
Modified
2026-10-20T10:30:19Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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

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.

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
6.4.7
Fixed
6.5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4cc664e59bf2553771e4c9e90f758f7434cfdc22

Affected versions

v6.*
v6.4.10
v6.4.11
v6.4.12
v6.4.13
v6.4.14
v6.4.15
v6.4.16
v6.4.7
v6.4.8
v6.4.9

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.6.28
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.7

Database specific

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