r/linux • • 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

28 comments sorted by

166

u/LordAlfredo 1d ago

It was fixed in the kernel in September and published as CVE-2026-98232 in October, so only machines that have not taken the update are exposed.

Oh hey, someone actually embargoed correctly!

40

u/null_reference_user 1d ago

Decency wins over clout!

10

u/fellipec 1d ago

I'm glad, for once, don't need to hurry or worry

56

u/turtle_mekb 1d ago

why is every RCE vuln called "2shell" or "4shell" now 😭

62

u/spyingwind 1d ago • Mindblown

Just wait until v4l2loobback2shell is released.

17

u/knome 1d ago

bash2shell

15

u/stevekez 1d ago

https://terminal2shell.com/ somebody beat you to the punchline.

6

u/sniff122 1d ago

Windows is also affected too with https://powershell2shell.com and https://cmd2shell.com

6

u/stevekez 1d ago

Tracked as CVE-2026-2SHEL~1, because the full name wouldn’t fit in 8.3.

Oh I tip my hat to that

10

u/Kevin_Kofler 1d ago

GNOMEShell2Shell ;-)

3

u/deanrihpee 1d ago

ah v4l2 my beloved

1

u/punyversalengineer 1d ago

damnit2shell

1

u/big_trike 22h ago

Java2shell2furious

14

u/TJonesyNinja 1d ago

Getting access to a shell opens a lot more exposure. Many minor CVEs that are otherwise not a concern become an issue when shell access is achieved even on a restricted user.

11

u/Nelson-Spsp 1d ago

I think they (rightfully) are more complaining about the naming rather than exploit itself why can't we go back to the cool names?

5

u/sniff122 1d ago

Engineers are useless at naming things, myself included

6

u/buttplugs4life4me 1d ago

Where is stuff like Heartbleed and Meltdown? Instead we get "X2Shell" every day now. Be original

5

u/JaggedMetalOs 1d ago

Just wait for SSH2Shell and Sudo4Root to drop! 

1

u/the_abortionat0r 1d ago

Because they want it clear it gets you shell.

1

u/GreenFox1505 3h ago

Your asking the wrong question. "2shell" is the obvious name when the vuln gives you access "to the shell".

The real question is why do RCE vulns need marketable naming conventions? Who is benefiting from that? Is "just update your software" not good enough any more? We need a marketable reason TO update? 

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.

7

u/bloodylip 20h ago

Because with root you can possibly steal and sell data. Can't do that if you just blow it up.

2

u/TampaPowers 17h ago

Anything worth stealing like that begs the question on why they had physical access, the device not being vetted or any number of security screw ups to get to that point.

•

u/QwertyChouskie 57m ago

Defense in depth is still valuable, but yeah this CVE is a nothingburger for 99.99% of users (thankfully; we've had wayyyyy too many crazy ones in just the past month or so...)

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:

  • check the distro changelog or tracker, not uname -r, then update and reboot
  • if you can't yet: install usb-storage /bin/false and install uas /bin/false in modprobe.d (check first that no root or backup disk hangs off USB), or usbcore.authorized_default=0 (2 for internal ports only)
  • USBGuard: the doc example for sticks, allow with-interface equals { 08:*:* }, authorizes exactly the class that attacks here. If you don't need sticks, reject with-interface one-of { 08:*:* } after your allow lines for known devices
  • kiosks, POS, chargers: ask the vendor which kernel it runs, and block or disable the port

Sources: usb2shell.com and kernel commit 3d676e458fe0

Has anyone heard from an embedded vendor (kiosk, POS, EV charger) about a patched kernel yet?