The Hacker News
USB2Shell Linux flaw lets malicious devices run commands as root
Part of the CVE-2026-98232 story · since 1 Dec
- Tue 1 Dec, 08:30 UTC. The Hacker News, first report. USB2Shell Linux flaw lets malicious devices run commands as root. This article, 1st of 2.
- Tue 1 Dec, 09:00 UTC. SecurityOnline, its first report on the story. Linux USB flaw lets rogue devices gain root access.
Drivesec researchers have demonstrated a kernel-level flaw in Linux, dubbed USB2Shell, that can empower a malicious USB storage device to execute the attacker’s commands as root on an unpatched system, without login, mounting a drive or any user interaction. The vulnerability lies in the Linux kernel’s SCSI core during an automatic USB mass storage scan when a device claims to be an ATA disk and supports Command Duration Limits.
The device’s reported length values are copied into a small kernel stack buffer without proper bounds checking, allowing reading of up to 64 bytes and the possibility to modify a single byte, per the kernel advisory. In a tested setup, the single-byte change could be escalated to write to arbitrary kernel memory, defeating KASLR and enabling the attacker to run root commands when the USB device is removed.
The flaw, CVE-2026-98232, was fixed in September, but remains exploitable on systems that have not received the update. The issue affects Linux kernels 6.5 and later where USB mass storage support is active (usb-storage or uas drivers); exploitation requires physical access to a reachable USB port.
The researchers’ write-up notes the attack was demonstrated on a Debian machine running kernel 6.12.22 with KASLR enabled, using a Cynthion USB tool. No public exploit has been reported in the wild, and there is no published success rate; the exploit is probabilistic but non-crashing on failed attempts. Debian’s security tracker states the standard Debian 12 kernel did not contain the flawed code, while Red Hat’s kernel backports the fix under a different versioning.
Users are advised to update to a kernel containing the fix or backport it; if immediate update isn’t possible, stop usb-storage and uas drivers on machines that do not need USB storage, and enable USB allow-listing or similar controls. The CVE’s practical risk centres on public-access ports in kiosks, terminals, car infotainment systems, EV chargers and smart hubs, where an attacker could reach a USB port.
The finding was first flagged by Google’s Sashiko AI code-review system on the kernel mailing list, with Drivesec confirming the flaw and developing the working exploit.
How the story developed
2 articles from 2 outlets since 1 Dec. Still developing; the latest report was 52 minutes ago. This was the first report.
- Tue 1 Dec, 08:30 UTC. The Hacker News, first report. USB2Shell Linux flaw lets malicious devices run commands as root. This article, 1st of 2.
- Tue 1 Dec, 09:00 UTC. SecurityOnline, its first report on the story. Linux USB flaw lets rogue devices gain root access.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 2 articles as a listHide the list
- Tue 1 DecDay 02
- USB2Shell Linux flaw lets malicious devices run commands as root08:30 · The Hacker News · First report · This article, 1st of 2
- Linux USB flaw lets rogue devices gain root access09:00 · SecurityOnline