December 1, 2026

Plug In, Get Root: The Spec Sheet on the USB2Shell Linux Kernel Flaw and a Checklist for Machines With Reachable USB Ports

Researchers at Drivesec showed that a crafted USB device can make an unpatched Linux machine run a command as root, with nobody logged in and nothing clicked. The fix has been out since September. Here are the key facts and a checklist for kiosks, terminals and other machines strangers can reach.

A small black USB device lying on an office desk

A locked screen does not help against this one. Researchers at Drivesec have demonstrated “USB2Shell,” a Linux kernel bug that lets a specially built USB device run a command as root on an unpatched machine, even if nobody is logged in and no drive is ever mounted. The Hacker News reported on the research, including the kernel advisory and how Linux distributions are affected. The headline numbers are below, followed by what to do.

The spec sheet

  • Name / ID: USB2Shell, CVE-2026-98232.
  • Where it lives: The Linux kernel’s SCSI core, in code that turns on a storage feature called Command Duration Limits.
  • The bug: When a USB device claims to be an ATA disk that supports that feature, the kernel copies data from the device into a small buffer, using length values supplied by the device without checking them against the buffer size.
  • Why login doesn’t matter: This happens during the automatic scan the kernel performs the moment a storage device is plugged in. A locked screen, logged-out session or “no unknown drives” mount policy does not stop it.
  • Raw impact: According to the kernel advisory, a lying device can read up to 64 bytes of kernel stack memory and change one byte of it.
  • Demonstrated impact: On a test machine, the researchers turned that one-byte change into full kernel memory writes, got around KASLR (the protection that randomizes where kernel code sits) and had the device’s chosen command run as root when it was unplugged.
  • Test setup: Debian on kernel 6.12.22 with KASLR enabled, attacked with a Cynthion, a small programmable USB tool.
  • Reliability: Probabilistic, with no published success rate. It ran on one test machine and did not always work, but a failed attempt does not crash the system, so it can be retried.
  • Affected kernels: Introduced in Linux 6.5 and present in later releases until the fix. A machine needs USB mass storage support (the usb-storage or uas driver) and a USB port someone can physically reach.
  • Distribution caveat: Upstream version numbers don’t map neatly onto vendor kernels. Debian’s tracker says its standard Debian 12 kernel never had the flawed code, while Red Hat shipped the fix in a kernel it numbers 5.14. Check your vendor’s advisory.
  • Android: The researchers got only a memory leak, not root, on the builds they checked. Phone kernels from 6.6 on are affected, but a compiler protection blocked the memory-changing step.
  • Fix status: Patched in the kernel in September and published as a CVE in October.
  • In the wild: No attacks or victims found, and not on CISA’s Known Exploited Vulnerabilities list as of The Hacker News’s report.
  • Who found it: First flagged on the kernel mailing list by Sashiko, an AI code-review system Google built for the kernel and gave to the Linux Foundation. Drivesec says it found the bug on its own, wrote the fix and built the exploit, and that the AI did not write the exploit.

Where the risk is real

A physical attack doesn’t scale the way a remote one does, and the fix has been available for months. The researchers point to equipment where strangers can reach a USB port: self-service kiosks, payment terminals, car infotainment systems, EV chargers and smart-home hubs. They stress these are examples of where an exposed port matters, not a list of products shown to be vulnerable.

Checklist

  1. List your Linux machines that have a USB port someone outside IT could reach, including kiosks, lobby displays, point-of-sale systems, lab or shop-floor PCs, and appliances that run Linux under the hood.
  2. Check each one against its vendor’s advisory for CVE-2026-98232, not just the kernel version number, and install the fixed kernel or firmware.
  3. Ask appliance and kiosk vendors directly whether their image includes the fix, and when it will if it doesn’t.
  4. Where a machine never needs to read USB storage, stop the usb-storage and uas drivers from loading.
  5. Where USB is needed, require devices to be approved before the kernel loads a driver for them, using USB allow-listing such as USBGuard or the authorized_default=0 setting.
  6. Treat the researchers’ check script as a hint only, because it can miss fixes that vendors have backported.
  7. Physically secure or cover ports on unattended equipment in public areas.

What this means for your company

Most offices don’t think of the reception kiosk, digital sign or badge station as a server, but many of them run Linux and sit within arm’s reach of visitors. This flaw is a good reason to add those devices to your asset inventory and patch schedule, and to decide which machines need open USB ports at all. Physical access controls, USB device policies and timely firmware updates work as layers, so one missed patch doesn’t become a takeover.

If you’d like help building an inventory of your endpoints and devices and putting USB and patch policies in place across them, we can help. Reach out to Layer 7 Data Solutions to discuss how we’ve helped companies similar to yours.

About The Author