Hackerparagraph,IT-Security, Linux (Image © DALL-E)
Analysis of CVE-2026-98232
The vulnerability is located in the SCSI (Small Computer System Interface) component of the Linux kernel, which manages data exchange with peripheral devices. The vulnerability arose during the implementation of Command Duration Limits (CDL) in kernel version 6.5, which was released in August 2023. According to technical investigations by Drivesec, the root cause lies in a lack of length validation for a 64-byte stack buffer within the scsi_cdl_enable() function. This buffer is used to process a “Feature Mode Page.” The absence of this validation allows a malicious device to force the kernel to send up to 64 bytes of the kernel stack to the device and to overwrite a specific stack byte at a chosen offset.
Attack Vector and System Compromise
The attack occurs during the initial automatic scan performed by the Linux system, even before userspace detects the storage device at all. Researchers have demonstrated that this vulnerability can be exploited to execute arbitrary code with root privileges, even on systems where KASLR (Kernel Address Space Layout Randomization) is enabled.
The most important prerequisite for this exploit is physical access to the hardware so that the attacker can connect the prepared USB device. While conventional Linux workstations and servers are the primary targets, the scope of the vulnerability extends to any embedded system running an affected kernel version with accessible USB ports, including:
- Electric vehicle (EV) charging stations.
- Point-of-sale (POS) terminals.
- Infotainment systems in vehicles and aircraft.
- Smart home hubs.
- Industrial human-machine interface (HMI) systems.
Patches and Version Information
The fix for USB2Shell was integrated into the Linux kernel in September. The fix is included in the following versions, which were released between late September and mid-October:
- 6.6.158
- 6.12.112
- 6.18.54
- 7.2.8
- 7.3
Distribution maintainers and hardware manufacturers are responsible for distributing these updates to end users. For example, Debian has already made the fix available in all current releases. It should be noted that security patches are often backported to older kernel versions without changing the version number, which means that some older systems may already be protected.
Mitigation Strategies for Unpatched Systems
For administrators managing systems where a kernel update cannot be performed immediately, several measures can be taken to reduce the attack surface:
-
- USB whitelisting: Use tools such as USBGuard to prevent unauthorized USB devices from interacting with the system.
-
- Driver deactivation: Prevent the automatic loading of USB storage and UAS (USB Attached SCSI) drivers unless external storage media are required for system operation.
This vulnerability follows other recently discovered vulnerabilities in the Linux kernel, including a separate vulnerability that allowed remote root access via certain NFS requests.
