
Italian security firm Drivesec published research on Monday, November 30, showing that a specially built USB device can make an unpatched Linux machine run a command of the attacker’s choice as root. The flaw, tracked as CVE-2026-98232 and nicknamed “USB2Shell,” sits in the kernel’s SCSI core. When a USB storage device is plugged in, the kernel scans it automatically, and during that scan it trusts length values the device itself reports. A device that lies about those lengths can read up to 64 bytes of kernel stack memory and change one byte of it. Drivesec says it chained that into root command execution on a stock Debian 6.12.22 kernel with KASLR enabled, using a programmable USB tool called a Cynthion. Nobody has to log in, mount the drive or click anything, so a locked screen does not help.
The attacker needs brief physical access to a USB port, and the demo is probabilistic: Drivesec says failed attempts do not crash the machine, so the device can retry. The Hacker News reports that no real-world attacks have been found. The fix was committed upstream on September 9 and the CVE was published by the Linux kernel CNA on October 6, per Drivesec’s timeline, so the exposure is limited to machines that have not taken the update. Drivesec lists Linux kiosks, point-of-sale terminals, EV chargers, in-car units and similar systems with reachable USB ports among the places where this matters. It also says the bug was first reported on the linux-scsi list by Sashiko, an AI code-review system, and that its own team found it independently.
How to check if you’re affected
Affected devices are Linux systems running kernel 6.5 or later without the fix, with USB mass-storage support (the usb-storage or uas driver, built in or auto-loaded) and a USB port someone can reach. Drivesec lists these first-fixed releases: 6.6.158, 6.12.112, 6.18.54, 7.2.8 and mainline 7.3. Distributions backport fixes without changing the version number, so check your vendor’s advisory for CVE-2026-98232 rather than relying on the number alone; The Hacker News says Red Hat shipped the fix in its 5.14-numbered kernel.
- Debian’s security tracker lists bookworm (kernel 6.1) as not affected because the vulnerable code is not present, and trixie as fixed in 6.12.113-1 (DSA-6568-1).
- Drivesec says Android kernels from 6.6 on are affected only by the stack-memory leak on the builds it checked (Android GKI and the Samsung Galaxy A16 kernel), because compiler bounds checks keep the write inside the buffer.
- If you cannot update yet, Drivesec’s mitigations are to keep
usb-storageanduasfrom loading where mass storage is not needed, or to require approval for new USB devices with USBGuard orauthorized_default=0. - Drivesec offers a checker script at usb2shell.com. It tells readers to read it before running it, and warns that a flag on a backported kernel needs confirming against the vendor’s advisory.
