
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-35954 is a vulnerability in the Linux kernel's SCSI subsystem, specifically in the sg (SCSI generic) driver. The vulnerability was discovered and disclosed on May 20, 2024. It affects Linux kernel versions from 6.4.7 to 6.6.28 and 6.7 to 6.8.7. The issue involves a race condition in the sg device teardown process (NVD).
The vulnerability stems from a race condition in the sg_remove_sfp_usercontext() function where sg_device_destroy() is called after scsi_device_put(). The issue occurs because sg_device_destroy() attempts to access the parent scsi_device request_queue which becomes NULL after scsi_device_put() removes the last reference to the parent scsi_device. This sequence results in a NULL pointer exception that can crash the kernel. The vulnerability has been assigned a CVSS v3.1 base score of 4.7 (Medium) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).
When exploited, this vulnerability can cause a NULL pointer exception that leads to a kernel crash, resulting in a denial of service condition. The impact is limited to local attacks and requires low privileges to execute (NVD).
The vulnerability has been fixed in the Linux kernel through patches that correct the device teardown sequence. The fix involves restructuring the code to ensure proper ordering of operations in sg_remove_sfp_usercontext(). Updates are available in various Linux distributions, including Ubuntu 24.04 LTS which has released version 6.8.0-38.38 to address this issue (Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."