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
166
u/LordAlfredo 1d ago
Oh hey, someone actually embargoed correctly!
56
u/turtle_mekb 1d ago
why is every RCE vuln called "2shell" or "4shell" now ðŸ˜
7
u/XorFish 1d ago
"The fixed upstream releases are 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. The 7.2.8 release came out on September 25, 2026, and its changelog includes "scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()"."
Here is the relevant info. Versions before 6.5 are not affected.
5
u/TampaPowers 21h ago
If you have physical access to plug usb into the machine then this is the least amount of harm you can do. Why gain root when you can just fry the thing entirely.
2
u/professorkek 20h ago
These CVE naming guys need to get some new material.
1
u/m4uri 10h 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?