Skip to content
Drivesec's usb2shell flaw lets a USB device run root commands on Linux

Drivesec's usb2shell flaw lets a USB device run root commands on Linux

Startupfortune • December 1, 2026

Anyone who can reach a USB port on an unpatched Linux machine may not need your password. Finding out whether yours is exposed takes more care than reading a kernel version.

On November 30, Italian security company Drivesec disclosed usb2shell, a Linux kernel bug that let its test device run commands as root with no login, mounted drive or click. It's tracked as CVE-2026-98232. Red Hat scores it 8.4 out of 10 with a severity of Important.

An attacker needs to plug a crafted device into one of your USB ports, and the machine needs the usb-storage or uas driver built in or able to load. Red Hat also flags the risk of virtual devices being attached to a guest system. According to The Hacker News, no attacks or victims had been found at publication, and the flaw wasn't on CISA's Known Exploited Vulnerabilities list.

The fault sits in a function called scsi_cdl_enable(), part of the Command Duration Limits support added in Linux 6.5. When a new device presents itself as an ATA drive with that feature, the kernel reads its settings into a 64-byte buffer and trusts the length values the device sends back. A dishonest device can use that to read up to 64 bytes of kernel stack memory and clear a single byte at a position it chooses. This happens during the automatic scan at plug-in. Switching off automount won't protect you.

Drivesec's researchers, credited as Z3r0n37 and Alberto247, used the leaked memory to defeat KASLR, which randomises where the kernel sits, and then turned that one cleared byte into root access. Their demonstration ran from a Cynthion USB board against a stock Debian 6.12.22 backports kernel. Two attempts missed. The third ran the whoami and uname commands as root, with execution coming when the device was unplugged.

The company calls the exploit probabilistic, says failed runs don't crash the target and publishes no success rate. Its advisory describes the proof of concept in detail and offers a downloadable script that checks whether a system is exposed.

The fix is older than the news. Drivesec reported the bug privately on September 2, the patch was committed on September 9 and the CVE appeared on October 6. The advisory also notes that an AI system, Sashiko AI Review, reported the bug first on the Linux SCSI mailing list. Drivesec says it found the problem independently, wrote the fix and built the attack.

Is your Linux machine affected by usb2shell?

For kernels taken straight from upstream, anything from 6.5 onward is exposed until patched. The fix is in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3.

Distribution kernels need more care. Drivesec's script, as written, reports any version below 6.5 as not affected. Yet Red Hat released a fix for Red Hat Enterprise Linux (RHEL) 9 on November 20 in a kernel numbered 5.14.0-741.24.1.el9_9, followed by 5.14.0-687.69.1.el9_8 for the 9.8 extended support line. RHEL 10 received 6.12.0-264.19.1.el10_3, while RHEL 7 and 8 are listed as unaffected. If you run RHEL 9, don't accept a clean result from a version check.

The script can err the other way too. It has no fixed threshold for the 6.8 series, so it will flag a patched Ubuntu kernel unless you check Canonical's listing yourself. Ubuntu shows the main 24.04 kernel fixed in 6.8.0-149.149 and the 26.04 kernel in 7.0.0-42.42. Cloud and hardware variants carry their own numbers, and several NVIDIA kernels were still marked as work in progress.

Debian 13 is fixed in 6.12.113-1. Debian 12's standard 6.1 kernel never had the flawed code, but its optional 6.12 package needs 6.12.113-1~deb12u1 or later. SUSE lists its Enterprise Server and Leap releases as unaffected, shows a fix for openSUSE Tumbleweed and gives the bug a much lower score of 5.7.

Whatever you run, install your vendor's update, reboot and confirm the running kernel with uname -r.

If you can't patch yet

Stop usb-storage and uas from loading on machines that don't need USB drives. You can also use USBGuard, or set authorized_default to 0 so new devices wait for approval, but test that first on any system you manage through a USB keyboard.

Start with the hardware strangers can touch. Drivesec names kiosks, point-of-sale terminals and EV chargers among the exposed device types, and an unattended laptop or a server in a shared rack deserves the same attention. On Android, the researchers found only a memory leak in the builds they checked. If a supplier ships your device with its own kernel, ask whether it includes upstream commit 3d676e458fe0.

Also read: Google's new Antigravity terms say a violation won't touch your Google account • WSTS Puts 2026 Chip Market at $1.8 Trillion, 85% Above Last Year's Call • Western Digital Jumped 10% on an AI Memory Call That Never Named It

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

usb2shell: Malicious USB Device Can Gain Root on Unpatched Linux Kernels (CVE-2026-98232) Drivesec researchers published usb2shell, a proof-of-concept showing that a crafted USB device can execute commands as root on unpatched Linux systems during the kernel's automatic device scan, without login, mounting, or user action. The flaw, tracked as CVE-2026-98232, is in the SCSI core's Command Duration Limits handling, introduced in Linux 6.5, where device-supplied mode page lengths are used without validation, allowing a 64-byte kernel stack disclosure and a one-byte out-of-bounds write. The researchers defeated KASLR on a stock Debian 6.12.22 kernel using a Cynthion USB device and reported the exploit is probabilistic, with failed attempts not crashing the system. Systems are exposed if they run Linux 6.5 or later without the fix, include USB mass storage support (usb-storage or uas), and have a reachable USB port; the research names kiosks, EV chargers, point-of-sale terminals, and industrial panels as examples of such systems. Fixed releases are listed as 6.6.158, 6.12.112, 6.18.54, 7.2.8, and mainline 7.3, with upstream commit 3d676e458fe0; distributions may backport fixes without changing version numbers, so vendor advisories should be checked. Android kernels on 6.6 and later leak kernel memory, but the builds checked (Android GKI and Samsung Galaxy A16) use bounds checks that prevent the write. Reporting states no real-world attacks have been identified, and the exploit was demonstrated only on a test machine. 7 sources 70