r/linux • • 3d 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
207 Upvotes

30 comments sorted by

196

u/LordAlfredo 3d 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!

44

u/null_reference_user 3d ago

Decency wins over clout!

12

u/fellipec 3d ago

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

68

u/turtle_mekb 3d ago

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

70

u/spyingwind 3d ago • Mindblown

Just wait until v4l2loobback2shell is released.

25

u/knome 3d ago

bash2shell

21

u/stevekez 3d ago

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

11

u/sniff122 3d ago

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

8

u/stevekez 3d ago

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

Oh I tip my hat to that

1

u/postmodest 1d ago

UsernameAndPassword2Shell

11

u/Kevin_Kofler 3d ago

GNOMEShell2Shell ;-)

3

u/deanrihpee 3d ago

ah v4l2 my beloved

1

u/punyversalengineer 3d ago

damnit2shell

1

u/big_trike 2d ago

Java2shell2furious

14

u/TJonesyNinja 3d 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 3d 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 3d ago

Engineers are useless at naming things, myself included

7

u/buttplugs4life4me 3d ago

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

5

u/JaggedMetalOs 3d ago

Just wait for SSH2Shell and Sudo4Root to drop! 

3

u/GreenFox1505 2d 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? 

1

u/the_abortionat0r 3d ago

Because they want it clear it gets you shell.

10

u/XorFish 3d 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.

3

u/professorkek 2d ago

These CVE naming guys need to get some new material.

2

u/TampaPowers 2d 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.

15

u/bloodylip 2d ago

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

-1

u/TampaPowers 2d 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.

2

u/flatpak2021_08_2021 1d ago

couldn't you leave a USB in the parking lot of somewhere you want to hack and hope a curious employee plugs it in?

1

u/QwertyChouskie 2d 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...)

1

u/m4uri 2d 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?