Research

USB2Shell (CVE-2026-98232): A Fake USB Disk Can Get Root on Linux 6.5+ Before Anyone Logs In. The Fix Shipped in September. Here Is Which Kernel You Need, by Distro

USB2Shell (CVE-2026-98232): A Fake USB Disk Can Get Root on Linux 6.5+ Before Anyone Logs In. The Fix Shipped in September. Here Is Which Kernel You Need, by Distro

What to do first. If you run Linux on anything a stranger can plug a USB stick into (kiosks, lab and classroom machines, shared laptops, point-of-sale, signage, in-car and charging units, conference-room PCs), install your distribution's current kernel and reboot. The flaw is CVE-2026-98232, nicknamed USB2Shell. It is in every upstream kernel from 6.5 until the fix, and it fires during the automatic device scan when something is plugged in: no login, no mount, no click. A locked screen does not stop it. If you cannot reboot this week, stop the usb-storage and uas drivers from loading on machines that do not need USB storage, or turn on USB device approval (USBGuard, or authorized_default=0). Then do the self-check at the bottom.

Nobody has reported this being used against real victims. It is not in CISA's Known Exploited Vulnerabilities catalog (we checked the KEV JSON, catalog version 2026.11.30). The researchers did publish a working root exploit against a stock Debian kernel on real hardware, and they did not publish its code.

What it is

The bug is in the SCSI core, in scsi_cdl_enable(), the function that turns on a storage feature called Command Duration Limits (CDL). In the kernel CVE record's words, it "uses length fields returned by MODE SENSE to locate the ATA feature mode page in a 64-byte stack buffer. A target can report a total length shorter than its mode header and block descriptors." The arithmetic then wraps, and two things happen: the kernel can clear two bits of a stack byte the device chooses, and it can copy "up to 64 bytes from outside the buffer" back to the device, "disclosing stack contents to the target."

The record is plain about reach: "This is reachable while scanning a USB storage device that identifies as an ATA device and advertises CDL support. No filesystem mount or userspace access to the block device is required."

So the attacker is a USB gadget that lies about being an ATA disk. The gadget reads kernel stack memory (which defeats KASLR) and gets a small write. The researchers chained those into arbitrary kernel writes and ran a command of their choice as root.

Who found it

Two finders, and both get credit. Google's Sashiko, an AI code-review system for the Linux kernel, first reported the bug on the linux-scsi mailing list. Drivesec S.r.l., an Italian firm that tests connected products, found it independently, wrote the fix and built the exploit chain; the write-up at usb2shell.com is credited to Z3r0n37 and Alberto247. The kernel CVE text says the issue "was independently found during security research at Drivesec S.r.l." The Hacker News (Swati Khandelwal, December 1) is the press report; everything below comes from the write-up, the kernel CVE record and the distro trackers, not from the article.

Timeline, from Drivesec's write-up: found August 26, 2026; root on physical hardware August 28; reported privately to the SCSI maintainers September 2; patch sent September 4; fix committed September 9 (upstream commit 3d676e458fe0); CVE published by the Linux kernel CNA October 6; write-up published November 30.

How reliable the exploit is: probabilistic. In the demo the first two attempts missed and the third worked. The part that matters for defenders: "no crash is triggered on failed executions," so an attacker with a few seconds at the port can simply retry. The test target was a stock Debian 6.12.22+bpo-amd64 kernel with KASLR on, attacked with a Cynthion programmable USB tool. There is no published success rate.

Android: the researchers got a leak only. Android kernels 6.6 and newer still return the stack bytes, but the Android generic kernel and a Samsung Galaxy A16 kernel they checked "use compiler bounds checks that keep the write inside the buffer." No root on phones was shown.

Which kernel you need

Upstream (kernel CVE record): introduced in 6.5. Fixed in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Anything older than 6.5 never had the code.

Do not go by the upstream version number alone. Distributions backport, and some never shipped the code at all. What the trackers say today:

  • Debian: bookworm's standard 6.1 kernel is not affected ("Vulnerable code not present"). Trixie is fixed from 6.12.113-1 (DSA-6568-1). Bookworm machines running the 6.12 backport kernel (the exact kernel the exploit was built on) are fixed from 6.12.113-1~deb12u1 (DLA-4850-1).
  • Ubuntu: 24.04 LTS (noble) linux is fixed in 6.8.0-149.149. 26.04 LTS (resolute) is fixed in 7.0.0-42.42. 22.04, 20.04 and older are listed not affected for the main linux package. Ubuntu rates it Medium priority. Cloud, HWE and OEM kernel flavors have their own rows on Ubuntu's CVE page; check yours.
  • Red Hat: rated Important. RHEL 6, 7 and 8 are not affected. RHEL 9 is fixed in kernel 5.14.0-741.24.1.el9_9 (RHSA-2026:100662), which is why a "5.14" kernel shows up as patched even though upstream 5.14 never had the bug: Red Hat backported the feature and now the fix. RHEL 10 is fixed in 6.12.0-264.19.1.el10_3 (RHSA-2026:102168). OpenShift's RHEL CoreOS 9 images are still listed as affected.
  • SUSE: rates it moderate. SUSE Linux Enterprise 15 SP7 and 16.x kernel-default are listed not affected. openSUSE Tumbleweed is fixed from 7.2.10-1.1.

Red Hat's statement adds a case people will miss: exploiting it "necessitates physical access to insert a crafted storage peripheral or the capability to attach virtualized devices to a guest instance." If you run VMs where someone else decides which USB or SCSI devices get attached to a guest, the guest's kernel is in scope too.

If you cannot patch yet

  • No USB storage needed? Stop the drivers from loading. A file in /etc/modprobe.d with the lines "install usb-storage /bin/false" and "install uas /bin/false" does it for modules, then unload them or reboot. If your kernel has them built in rather than as modules (check modules.builtin under /lib/modules/ for your running kernel), this does nothing and you need the next option.
  • Approve devices before drivers bind. USBGuard with a default-block policy, or setting authorized_default to 0 on each USB host controller (under /sys/bus/usb/devices/usb*/), means a new device gets no driver until it is allowed. The bug fires at driver scan time, so blocking the driver blocks the bug.
  • Physical policy. For kiosks, signage and lab benches, port blockers and locked enclosures are a real control here, not theater. This attack needs seconds at a port and tolerates misses.

Am I affected?

  1. Run uname -r. If the kernel is older than 6.5 and you are on a stock distro kernel, you are almost certainly fine (RHEL 9's 5.14 is the exception: compare against the Red Hat build above).
  2. Compare your installed kernel package version to the fixed version for your distro listed above. That is the real answer; the upstream number is only a hint.
  3. Make sure you rebooted into it. A fixed package on disk does not help a running old kernel; uname -r must show the new one.
  4. Run lsmod and look for usb_storage and uas. If neither is loaded or built in, a fake disk has no driver to talk to.
  5. Drivesec publishes a check script (usb2shell-check.sh) at usb2shell.com. They say to read it before running it, and that it can miss vendor backports. Treat its result as a hint, not proof.

Did our edge see it? Not applicable. This is a physical USB attack (or a hypervisor attaching a device to a guest). It sends nothing over the network for an edge sensor or honeypot to record, so we did not run an edge check, and no indicators of compromise were published. There is nothing to add to a blocklist.

What is not known

  • Whether anyone has used this outside a lab. No victims, no campaign, no KEV listing as of December 1.
  • How reliable the exploit is across hardware and kernel builds. One demo, no published success rate.
  • Which commercial devices (kiosks, terminals, chargers, infotainment) run an affected kernel with USB storage enabled. The researchers name these as places strangers reach a port; none has been shown compromised.

How we know

We read Drivesec's write-up at usb2shell.com, the Linux kernel CNA's CVE-2026-98232 record (affected and fixed versions), the Debian, Ubuntu, Red Hat and SUSE CVE trackers on December 1, 2026, and the CISA KEV JSON. The Hacker News report is where we first saw it.

Sources

Read next: the Windows side of the same idea, where a forged USB descriptor got SYSTEM on a patched machine with nobody logged in: Bring Your Own Vulnerable Driver Just Became Have Windows Fetch It For You.


Every indicator in this post is in the feed. Free.

1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.

Get your free key → analytics.dugganusa.com/stix/register