Usb2shell: Root on Linux from a USB Plug-In usb2shell.com · 65 points · 16 comme...

@best

Usb2shell: Root on Linux from a USB Plug-In usb2shell.com · 65 points · 16 comments · HN thread

TL;DR Drivesec, an Italian security firm, published details of a Linux kernel bug (CVE-2026-98232) in the SCSI Command Duration Limits code that lets a crafted USB mass-storage device trigger a kernel write and run a device-supplied command as root when the device is plugged in, with no mount or user action needed. The bug affects Linux 6.5 and later until fixed in stable releases such as 6.6.158, 6.12.112, 7.2.8 and mainline 7.3; Android builds they checked only leak kernel memory.

  • The bug is in scsi_cdl_enable(), which reads a mode page into a 64-byte stack buffer using unchecked lengths from the device's reply, enabling a stack leak and a one-byte overwrite.
  • It fires during the automatic device scan, before any disk is mounted or userspace sees the device, so no user interaction is needed.
  • Affected systems need Linux 6.5+ without the fix and USB mass storage support (usb-storage or uas), built in or auto-loaded.
  • The PoC ran on a Cynthion USB device against a stock Debian 6.12.22 kernel, breaking KASLR and executing a device-chosen command as root on unplug; it is probabilistic but reportedly causes no crash on failed tries.
  • Mitigations are the fixed kernel or upstream commit 3d676e458fe0, removing usb-storage/uas where unneeded, or USB allow-listing such as USBGuard.
  • The authors list a timeline from discovery (2026-08-26) to CVE publication (2026-10-06), and note Sashiko AI Review first reported the bug on linux-scsi.

Discussion The thread is a mix of concern and mild skepticism. Several commenters point out that physical USB access has long been a known trust problem in Linux, and that a device can always impersonate a keyboard, so the real novelty is that the mass-storage path yields code execution without any mount. Others note the fix is already in recent point releases and that maintained distros will likely have it. A lot of the tone is joking, with jokes about the '2shell' naming pattern, the curl-and-run checker instructions, and the Tesla and lock-screen angles.

  • Fixed already in recent releases; update and you're covered (some): Commenters who track stable kernels note 7.2.8 came out in late September and their machines already run newer versions, so maintained distros and frequent updaters are probably patched.
  • Physical USB trust is a known, long-standing issue (many): Several argue Linux treats connected hardware as trusted and drivers are not hardened against malicious devices, so a rubber-ducky style attack was always possible. Some say the mass-storage vector is still surprising.
  • Keyboard impersonation is the bigger practical risk (some): One commenter says any USB device can pose as a keyboard and open a terminal, so this bug adds little, and suggests USBGuard-style default-deny policies as the real defense.
  • Serious: exploit runs unnoticed and even on locked machines (some): A commenter stresses that a one- or two-minute physical access can yield root without detection, even if the device is locked or no one is logged in, and calls it a proper driver exploit, though less worrying than a remote one.
  • Joking about the naming and presentation (many): A large share of replies mock the '2shell' naming scheme, the curl-and-run instructions, and the 'gate' suffix, rather than discussing the technical content.

Links from the comments

#linux #kernel #usb #security #exploit