USB2Shell Linux flaw lets a plugged-in device gain root without login
Unpatched Linux machines are exposed to a crafted USB storage device that can run commands as root the moment it connects.

Researchers at Drivesec disclosed a Linux kernel flaw, dubbed USB2Shell and tracked as CVE-2026-98232, that lets a crafted USB storage device run commands as root on an unpatched machine without any login or user action. The bug sits in the SCSI core's handling of Command Duration Limits, where the kernel trusts length values from a device claiming to be an ATA disk and copies them into a small stack buffer without bounds checks; it runs during the automatic scan at plug-in time, so screen locks and drive-mounting rules do not stop it. The flaw was introduced in Linux 6.5 and fixed upstream in September, and on a test Debian machine with KASLR enabled the exploit worked only probabilistically, with no crash on failed attempts. Sashiko, Google's AI code-review system, first reported the bug to the kernel mailing list, though Drivesec says it found the flaw independently and wrote the exploit itself. No real-world attacks or victims have been identified, and administrators should update kernels or restrict the usb-storage and uas drivers and use USB allow-listing in the meantime.
Why it matters
The flaw runs during the automatic device scan, so locked screens and rules against mounting unknown drives do not block it, and an attacker can retry a failed attempt without crashing the machine. Because it has been present since Linux 6.5 until the September fix is applied, anyone running an unpatched kernel from that range stays exposed to physical or opportunistic attacks through a USB port. No real-world attacks or victims have been identified so far, which leaves the risk prospective, but the lack of user action needed means the exposure is wider than typical USB threats.
Matters or hype?
Does this story matter, or is it hype? Vote before you see what everyone else said.