CVE Tools

USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login

The Hacker NewsBy The Hacker News

PatchLinux kernelusb-storage driver

Our summary

Security researchers at Drivesec disclosed a Linux kernel vulnerability, tracked as CVE-2026-98232 and nicknamed "USB2Shell," that lets a specially crafted USB stick trigger arbitrary code execution as root the instant it is plugged in — no login, mounting, or user interaction required. The bug lives in the kernel's SCSI core, in code handling the Command Duration Limits feature used by the usb-storage and uas drivers: a device can report false buffer-length values, causing the kernel to read and corrupt a small amount of stack memory, which the team then escalated into a full kernel memory write that defeats KASLR and spawns a root command. The flaw affects Linux kernel versions from 6.5 onward and was fixed upstream in September, with the CVE published in October, meaning systems that haven't applied the patch (or the vendor-backported equivalent, since Red Hat and Debian number things differently) remain exposed, particularly kiosks, payment terminals, infotainment systems, and other devices with accessible USB ports. No in-the-wild exploitation has been observed, and the attack proved unreliable even in lab testing, but admins are urged to patch, disable unused usb-storage/uas drivers, or enforce USB device allow-listing as mitigation.

Read at The Hacker News

The Hacker News publishes this story on its own site; we link to it rather than reprint it.

Worried this affects your company?

Try a free pilot on your internet-facing systems. Scope agreed before testing.

SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.