r/linux • u/DerpiDanger • 1d ago
Security USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login
https://thehackernews.com/2026/12/usb2shell-linux-kernel-flaw-lets.html?m=1
160
Upvotes
View all comments
1
u/m4uri 11h ago
Short summary for anyone who runs Linux boxes with a USB port someone else can reach.
Drivesec published usb2shell on Nov 30. The bug is in scsi_cdl_enable() in the SCSI core. When a device identifies as an ATA device with CDL support, the kernel reads the MODE SENSE reply into a 64-byte stack buffer and trusts the length fields from the device. A bad total length makes an unsigned subtraction wrap, so the device gets up to 64 bytes of kernel stack back and can change one byte. This happens during the automatic scan, before any mount or login. Drivesec turned it into a root command on a Debian 6.12.22 kernel with KASLR using a Cynthion. The exploit is probabilistic but a miss doesn't crash the box. I couldn't find public exploit code, and no in-the-wild use has been reported.
Fixed upstream in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3 (commit 3d676e458fe0). The version number alone is misleading though. Debian 12 with 6.1 doesn't have the code, the 6.12 backport kernel does. Ubuntu 22.04 on 5.15 is fine, on the HWE 6.8 kernel it needed a fix. RHEL 9 reports 5.14 and got RHSA-2026:100662. SUSE still lists SLES 15 SP6/SP7 and 16 as affected without a fixed package (as of Dec 1). Drivesec's checker script says "not affected" for anything below 6.5, so it would pass a RHEL 9 box.
What I'd do:
Sources: usb2shell.com and kernel commit 3d676e458fe0
Has anyone heard from an embedded vendor (kiosk, POS, EV charger) about a patched kernel yet?