A vulnerability in the Linux kernel, identified as CVE-2026-98232 and named 'USB2Shell', allows malicious USB devices to execute commands as root on unpatched systems. This flaw affects the Linux kernel starting from version 6.5. The vulnerability lies in the kernel's SCSI core, where it processes USB storage devices. When a USB device falsely claims to support the Command Duration Limits feature, the kernel fails to verify the length values provided, allowing the device to manipulate a small buffer in kernel stack memory. This oversight enables attackers to execute arbitrary commands with root privileges without needing user interaction.
This vulnerability was addressed in a kernel update released in September, but systems without the update remain at risk. The flaw was discovered independently by both the AI code-review system Sashiko and researchers at Drivesec. While no real-world attacks have been reported, the vulnerability poses a significant threat to systems with accessible USB ports, such as self-service kiosks and smart-home hubs.
The exploit is probabilistic, meaning it might not succeed every time without crashing the system, allowing attackers multiple attempts. Affected systems are those using USB mass storage support via the usb-storage or uas driver. The researchers demonstrated the attack on a Debian machine running kernel 6.12.22, with KASLR enabled, using a programmable USB tool called Cynthion. They managed to bypass security measures, including KASLR, and executed commands as root.
It's crucial for users to update their systems to a kernel version that includes the fix or backport the upstream fix commit. While the flaw is not currently listed in the U.S. government's Known Exploited Vulnerabilities catalog, it remains a concern for environments where physical access to USB ports is possible.

