The usb2shell vulnerability is a physical attack vector where a crafted USB device can grant root access to vulnerable Linux systems. Unlike remote '2shell' bugs, this exploit requires direct physical access to a USB port on the target system. It affects systems running Linux kernel 6.5 or later that have USB mass storage support enabled.
Systems are vulnerable if they run Linux 6.5 or newer without the fix, have USB mass storage support (usb-storage or uas) built-in or automatically loaded, and have an accessible USB port. This includes devices like car infotainment units, EV chargers, point-of-sale terminals, kiosks, and industrial HMIs. No user interaction or device mounting is required; the exploit triggers during the automatic device scan when the USB device is plugged in.
On Android, kernels 6.6 and later are affected, but compiler bounds checks typically prevent the write from escaping the buffer, resulting in a data leak rather than a full exploit.
The vulnerability resides in the Command Duration Limits (CDL) support, introduced in Linux 6.5. When the kernel scans a new SCSI device that identifies as an ATA device with CDL support, the scsi_cdl_enable() function is called. This function reads a mode page from the device into a 64-byte stack buffer. The bug occurs because lengths provided in the device's reply are used without proper validation, allowing the device to control the amount of kernel stack data sent back and to clear a single stack byte at an attacker-chosen offset.
To fix the vulnerability, users should update to a patched kernel version or backport the upstream commit 3d676e458fe0 ("scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()") to their vendor kernel. A checker script is available at usb2shell.com/tools/usb2shell-check.sh to help identify vulnerable kernels. If immediate updates are not possible, reducing physical access to USB ports can decrease exposure.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Researchers discovered "USB2Shell," a Linux kernel vulnerability (CVE-2026-98232) that allows a crafted USB device to execute commands as root on unpatched machines. The flaw, present in Linux kernel versions 6.5 and later, was fixed in September and affects systems with USB mass storage support. This vulnerability enables root access without login or user interaction, as the kernel scans USB devices upon connection.
A new vulnerability, dubbed usb2shell, allows an attacker to gain root access on Linux systems running kernel 6.5 or later by plugging in a specially crafted USB device. The flaw exploits unchecked lengths in Command Duration Limits (CDL) support during automatic device scanning, enabling kernel stack data leakage and modification without user interaction.