DriveSec's research team has released usb2shell, a proof of concept that shows a built-in USB device can run commands as root on Linux. No attacker login or a mounted disk is required. The kernel bug activates as soon as the device is plugged in and scanned. This bug is being tracked as CVE-2026-98232.
The name comes from a series of remote bugs this year, namely PHP2Shell, Java4Shell and wp2shell. usb2shell is its physical counterpart. Instead of sending web requests, the attacker plugs in a crafted device. Many devices with USB ports are in places that even strangers can reach, such as car infotainment and telematics units, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment systems, industrial control panels, and smart-home hubs.
Who is at risk?
A system is at risk when all three of the following conditions are met:
It runs Linux 6.5 or later without modification.
It has USB mass storage support, either built-in or automatically loaded via usb-storage or uas.
One can plug in a device into one of its USB ports.
No user action or mount required. The bug is triggered only during the automatic device scan.
The revised releases are: 6.6.158 for the 6.6 branch, 6.12.112 for 6.12, 6.18.54 for 6.18 and 7.2.8 for 7.2. The fix is in mainline 7.3. Android is different. Devices with kernels 6.6 and later still leak kernel memory, but the builds the team tested, including the Android GKI and Samsung Galaxy A16 kernels, use compiler bounds checks, which keep the text inside the buffer.
Distributions and device vendors often backport fixes without changing the version number. So deciding only by looking at the version can lead to wrong results. The team has provided a checker script, which you can read before running:
curl -fsSLO https://usb2shell.com/tools/usb2shell-check.sh less usb2shell-check.sh sh usb2shell-check.sh
See your vendor's advisory for CVE-2026-98232 if the script marks your kernel, or find the upstream fix commit 3d676e458fe0 in your source tree.
the bug
Linux 6.5 added support for Command Duration Limits (CDL), a SCSI feature. When the kernel scans for a new SCSI device that identifies itself as an ATA device supporting CDL, it calls scsi_cdl_enable(). The function reads a mode page from the device and places it in a 64-byte stack buffer and writes it back.
The code used without checking device response lengths:
len = min_t(size_t, sizeof(buf), data.length - data.header_length - data.block_descriptor_length); /* can wrap -> 64 */ buf_data = buf + data.header_length + data.block_descriptor_length; /* can point past buf */
The subtraction can be reversed, resulting in a length of 64. The calculated pointer may also read beyond the end of the buffer. A device that falsifies these values can force the kernel to send up to 64 bytes of its own stack back to the device. It can also zero out a single byte at an offset chosen by the device. Both of these steps occur before any disk is visible in user space.
exploit
The team chain was run with a Cynthion USB device, plugged into a PC with the stock Debian 6.12.22+bpo-amd64 kernel. Memory leaks expose enough kernel addresses to cause KASLR to fail. The chain then creates duplicate kernel structures, which turn single-byte overwrites into controlled writes. When the device is unplugged, the kernel runs a device-supplied command as root.
The exploit is probabilistic. In the demo the first two attempts fail and try again without crashing, and the third runs whoami and uname as root. Failed attempts do not crash the machine, the team said. This is important for the attacker, as he may try again, and for the defender, as he may not see any obvious signs of an attack.
timeline
2026-08-26: DriveSec's research team found the bug.
2026-08-28: Team achieves root command execution on real hardware.
2026-09-02: DriveSec reported the issue confidentially to SCSI maintainers.
2026-09-04: DriveSeq sends patch to linux-scsi.
2026-09-09: Fix is committed as 3d676e458fe0.
2026-09-25: CVE-2026-98232 is reserved.
2026-10-06: Linux CNA discloses CVE-2026-98232.
2026-11-30: DriveSeq releases usb2shell.
According to linux-scsi reports Sashiko AI Review first reported the bug in the linux-scsi list. DriveSec's team independently finds the bug, writes the fix, and builds the exploit chain. Patch submission is public.
what to do
The fix is to update to a revised kernel, or backport upstream commit 3d676e458fe0 — "scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()" — to the vendor kernel. Stable backports are also available as 39491a1ae930, 60b0b8ce803e, 6233d0b3ef46 and 99a6e4a9176d.
If updating cannot be done now, there are two ways to mitigate the risk. First, don't build or autoload usb-storage and uas on systems that don't need mass storage. This completely removes the attack surface. Second, use USB allow-listing like USBGuard, with authorized_default=0, so that the kernel never scans unauthorized devices.
For systems whose USB ports are accessible to strangers, the allow-listing step is most important. A kiosk or charger that can scan an unknown device can root that device, so patch them first.




