USB Plugin Grants Linux Root via Kernel Bug

Original: Usb2shell: Root on Linux from a USB Plug-In

Why This Matters

Physical USB attack surfaces on embedded Linux are vast and often unpatched.

CVE-2026-98232 lets a malicious USB device execute arbitrary commands as root on Linux 6.5+ kernels during automatic device scanning. No login, mount, or user interaction required. Fixed in 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3.

Researchers Z3r0n37 and Alberto247 at Drivesec S.r.l. have disclosed CVE-2026-98232, a stack out-of-bounds bug in the Linux kernel's SCSI core function scsi_cdl_enable(). The flaw was introduced with Command Duration Limits (CDL) support in Linux 6.5 and allows a crafted USB storage device to read up to 64 bytes of kernel stack memory and overwrite one byte—enough to achieve root command execution.

The attack requires no user interaction. Plugging in the malicious device triggers automatic kernel scanning, which calls the vulnerable function without validating the lengths returned by the device's mode page reply. The team demonstrated full exploitation on a stock Debian 6.12.22 kernel over a real USB port with KASLR enabled, using a Cynthion USB device. The exploit retried silently on failed attempts before achieving execution.

Affected systems include any running Linux 6.5 or later with usb-storage or uas loaded, and an accessible USB port. High-risk targets are embedded systems with publicly accessible ports: EV chargers, point-of-sale terminals, car infotainment units, kiosks, and industrial HMIs. Android is affected only as an information leak—compiler bounds checks block the write on tested GKI and Samsung builds.

Fixes are upstream in kernel versions 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3. The upstream commit is 3d676e458fe0. If patching is not immediately possible, unloading usb-storage and uas or deploying USB allowlisting via USBGuard reduces exposure.

Source

usb2shell.com — Read original →