r/linuxadmin • • 16h ago

Plugging in a USB drive can give an attacker root on unpatched Linux

https://runtimewire.com/article/usb2shell-usb-plug-root-unpatched-linux-cve-2026-98232
50 Upvotes

8 comments sorted by

28

u/skrugg 13h ago

I mean I’ve had USB drives that could do this for ages.

9

u/WhydYouKillMeDogJack 12h ago

On Linux?

Surely that can only happen if you have automount and allow execution from the mount directly and you'd still need some kind of payload to trigger the executable automatically

9

u/surveysaysno 9h ago

Theres been a USB DMA vulnerability for ages. A properly crafted USB device can write direct to system memory.

18

u/granadesnhorseshoes 10h ago

Physical access wah physical access. Having dicked around with usb stuff at the driver level, expect a bunch of this type of thing. Not because the code is particularly bad, but as a consequence of the usb spec and design. it's supposed to provide easily used external access to otherwise internal buses and subsystems.

At the point that i am forging hardware level interface data someones fucked regardless. What if i made it a malicious "network adapter" instead of a block device? Even without a full kernel exploit, what crazy shenanigans can i get up to at the hardware control level? Port mirroring? Traffic redirection? ARP resolution?

Or using it to light up little used (or tested) code and pretend I'm a jukebox (because that's a real thing in scsi spec)? I'm sure the code to handle jukebox scsi commands is thoroughly hardened and mature right? (it may indeed be, but it's an example)

Hot glue is the only real "fix" for drive-by hardware attacks.

5

u/Darkk_Knight 11h ago

RubberDucky

1

u/AtlanticPortal 5h ago

Not that kind of physical access though. In that case you have shell access. It’s “just” an initial access and persistence tool on a machine you already have code execution.

2

u/knobbysideup 1h ago
  1. physical access required
  2. disabling usb storage kernel module has been part of CIS and other hardening benchmarks forever.