Linux Vulnerabilities CVE USB Alert Cybersecurity

usb2shell (CVE-2026-98232): Root on Linux via USB

usb2shell, the Linux kernel flaw that gives a malicious USB device root with no login and no mount. Fixed versions, who is affected and what to do today.

· AI Security
6 min read
Background

Alert · updated 1 December 2026, 13:15 CET. A crafted USB device can get root on Linux 6.5 or later just by being plugged in. The fix has existed since September and Debian, Ubuntu and Red Hat already ship fixed kernels: update the kernel and reboot. The real risk is in machines with exposed USB ports that are almost never updated.

It's called usb2shell and it is CVE-2026-98232. Italian company Drivesec published it on 30 November: a malicious USB device makes the Linux kernel run a command of its choice as root. Nobody needs to log in, mount the drive or click anything, and it works even with the screen locked: the bug fires while the kernel automatically inspects the newly connected device.

usb2shell illustration: a USB drive plugged into a terminal that answers root

Timeline

  1. Jul 2026

    An AI code review tool, Sashiko AI Review, flags the bug on the kernel's SCSI mailing list.

  2. 26 Aug

    Drivesec finds it independently and, two days later, gets root on real hardware through a USB port.

  3. 9 Sep

    After Drivesec's private report to the maintainers, the fix lands in the kernel (commit 3d676e458fe0).

  4. 6 Oct

    The Linux kernel publishes CVE-2026-98232, without details of the attack yet.

  5. 20/23 Nov

    Red Hat ships fixed kernels for RHEL 9 and RHEL 10.

  6. 30 Nov

    Drivesec publishes usb2shell: the bug details, a video of the attack against a stock Debian and a script to check whether your kernel is vulnerable.

Latest

We update this section as news comes in. Times in CET (Spain).

1 Dec, 13:15 · Drivesec publishes usb2shell, and fixes are already in Debian, Ubuntu and Red Hat.

  • Drivesec (usb2shell.com) has published the full write-up. Its proof of concept uses a programmable USB device (Cynthion) against Debian running the 6.12.22 backports kernel with KASLR enabled: it reads 64 bytes of kernel stack to defeat KASLR, overwrites a single byte and, when the device is unplugged, the kernel runs its command as root. It doesn't succeed every time, but failed attempts don't crash the machine and it can retry. For now it links only a checker script, not the exploit code.
  • Debian (Security Tracker): fixed in trixie with 6.12.113-1 (DSA-6568-1) and in the 6.12 backports kernel for bookworm with 6.12.113-1~deb12u1 (DLA-4850-1). Bookworm's 6.1 kernel is not affected.
  • Ubuntu (CVE page): fixed in 26.04 LTS (7.0.0-42.42) and 24.04 LTS (6.8.0-149.149). On 22.04 only the 6.8 HWE kernel is affected, and it is already fixed; the standard 22.04 kernel is not affected. Ubuntu rates it medium priority.
  • Red Hat (CVE page): rates it Important (CVSS 3 score of 8.4). Fixed kernels for RHEL 9 (RHSA-2026:100662) and RHEL 10 (RHSA-2026:102168). RHEL 8 is not affected.
  • Android: according to Drivesec, on the Android 6.6+ kernels it checked only the memory leak works, not the write, thanks to compiler bounds checks.

What usb2shell is, in plain words

When you plug in a USB drive, the Linux kernel asks it what it is and what it can do before any program sees it. Since Linux 6.5, if the device claims to be an ATA disk with a feature called Command Duration Limits, the kernel reads one of its replies into a 64-byte buffer without checking the lengths the device itself reports. A crafted device lies about those lengths and gets two things: the kernel sends it pieces of its memory, and changes one byte the device picks.

From there, Drivesec built a complete attack up to root. Hence the name: this year has seen several remote "2shell" bugs (PHP2Shell, for example), and this is the physical version: instead of a malicious request, a malicious USB device.

Who is really affected?

A machine is exposed when all three are true:

  • It runs Linux 6.5 or later without the fix.
  • It has USB mass storage support (usb-storage or uas), which almost every distribution does.
  • Someone can plug something into one of its USB ports.

Servers in a locked data centre and laptops that update themselves have little to fear once they run the November kernel. The problem is Linux machines with USB ports anyone can reach that are rarely updated: kiosks and information displays, point-of-sale terminals, EV chargers, car and in-flight infotainment, industrial panels and smart-home hubs. On many of them the kernel is updated by the manufacturer, not by you.

Your system Fixed version
Upstream kernel (kernel.org)6.6.158, 6.12.112, 6.18.54, 7.2.8 or 7.3 depending on your branch
Debian 13 (trixie)linux 6.12.113-1 or later
Debian 12 (bookworm)Standard 6.1 kernel: not affected. 6.12 backports kernel: 6.12.113-1~deb12u1
Ubuntu 26.04 / 24.04 LTS7.0.0-42.42 / 6.8.0-149.149 or later
Ubuntu 22.04 LTSStandard kernel: not affected. 6.8 HWE kernel: 6.8.0-149.149~22.04.1
RHEL 9 / RHEL 10RHSA-2026:100662 / RHSA-2026:102168
Embedded devices (kiosks, POS, chargers…)Ask the manufacturer for its CVE-2026-98232 advisory

How to check your machine

See which kernel is running (not the latest one installed):

uname -r

Compare it with the table. Distributions apply the fix without changing the kernel's base version, so what counts is your distribution's package number, not whether it says 6.12 or 6.8. If you've updated but uname -r still shows the old kernel, you still need to reboot: until then you remain vulnerable.

Drivesec also publishes a checker script at usb2shell.com. As with any downloaded script, read it before running it.

What to do today, in this order

  1. List your Linux machines with reachable USB ports. Not just servers: kiosks, displays, POS terminals, shop-floor equipment, gateways and any device with Linux inside sitting in a public area.
  2. Update the kernel and reboot. Without the reboot it does nothing. For vendor devices, ask for their security advisory and the patch date.
  3. If you can't update yet, remove USB storage where it isn't needed. A server or a kiosk rarely needs to read USB drives:
    printf 'install usb-storage /bin/false\ninstall uas /bin/false\n' | sudo tee /etc/modprobe.d/usb2shell.conf
    sudo modprobe -r uas usb-storage
    First check they aren't built into the kernel: if grep -E "CONFIG_USB_(STORAGE|UAS)=" /boot/config-$(uname -r) shows =y, blocking the module does nothing.
  4. Where you do need USB, use an allow-list such as USBGuard: the kernel never inspects devices that aren't on the list, so the attack never fires.
  5. Physically protect the ports on machines in public areas: covers, enclosures or ports disabled in the BIOS.
  6. Watch what gets plugged in. The kernel logs every USB device that connects. If you collect those logs with a SIEM such as Wazuh, you can get an alert when someone plugs something into a machine where nothing should be plugged in. Its vulnerability detection also tells you which machines with an agent still run a vulnerable kernel once its database includes the CVE.

One detail: an AI saw it first

According to Drivesec itself, the first to flag the bug was Sashiko AI Review, an AI code review tool, on the SCSI subsystem mailing list. Drivesec found it independently later, wrote the fix and built the full attack. It's another example of something we see every week: AI is finding bugs ever earlier, and the bottleneck is becoming patching in time.

Frequently asked questions

Which Linux kernel version fixes usb2shell?

Versions 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. In practice what matters is your distribution's package: Debian 13 (trixie) fixes it in 6.12.113-1, Ubuntu 24.04 in 6.8.0-149 and Red Hat has already shipped fixed kernels for RHEL 9 and 10. After updating you need to reboot so the new kernel is loaded.

Is my Linux machine vulnerable to usb2shell?

It is if three conditions are met: it runs Linux 6.5 or later without the fix, it has USB mass storage support enabled (usb-storage or uas), and someone can plug a device into one of its USB ports. Debian 12 with its 6.1 kernel, Ubuntu 22.04 with the standard kernel and RHEL 8 are not affected.

Can usb2shell be exploited over the internet?

No. It needs physical access to a USB port for a few seconds, or the ability to attach virtual devices to a virtual machine. That is why the risk is mostly in machines with USB ports anyone can reach: kiosks, point-of-sale terminals, EV chargers, displays or industrial equipment.

What should I do if I can't update the kernel yet?

Stop the usb-storage and uas modules from loading on machines that don't need USB drives, or use a USB allow-list (USBGuard) so the kernel never scans unknown devices. If USB storage support is built into the kernel, blocking the modules does nothing, and you need the allow-list or the update.


Sources:


AI-powered cybersecurity

An AI that watches your systems, and you decide what it does

We connect your tools (Wazuh, firewall, email, Microsoft 365) to an AI that knows your company's context. It analyzes your logs 24/7, acts on its own only on low-risk issues and asks for your approval on everything else.

Background