Threat Intelligence

USB2Shell: A Crafted USB Device Can Give an Attacker Root on Unpatched Linux Machines

The Hacker News · 1 Dec 2026
Key Takeaway Apply your distribution's latest kernel update, and prioritise any Linux device where strangers can physically reach a USB port.

Researchers at Drivesec have shown that a specially built USB device can make an unpatched Linux machine run an attacker's command as root. No one needs to log in, mount a drive or click anything. The flaw, named USB2Shell and tracked as CVE-2026-98232, was fixed in the Linux kernel in September and published in October, so only machines that have not been updated are exposed.

The problem sits in the kernel's SCSI core. When a USB device claims to be an ATA disk that supports a feature called Command Duration Limits, the kernel copies data from the device into a small buffer without checking the device's length values against the buffer size. This happens during the automatic scan that runs as soon as a device is plugged in, so a locked screen, a logged-out session or a rule against mounting unknown drives does not stop it.

A lying device can read up to 64 bytes of kernel stack memory and change a single byte. On one Debian test machine running kernel 6.12.22 with KASLR enabled, the researchers turned that into the ability to write anywhere in kernel memory and run a chosen command as root. The exploit did not always work, though a failed attempt does not crash the machine, so an attacker can retry. The flaw affects Linux 6.5 onward, and only systems with USB mass storage support (the usb-storage or uas driver) and a reachable USB port.

Version numbers can mislead because distributions backport fixes and features. Debian's standard version 12 kernel never contained the flawed code, while Red Hat delivered the fix in its 5.14-numbered kernel. No attacks have been found, and the bug is not in the U.S. Known Exploited Vulnerabilities catalog. The researchers flag kiosks, payment terminals, car infotainment units, EV chargers and smart-home hubs as places where an open USB port matters, though none has been shown compromised.

Why it matters

This breaks the assumption that a locked screen or a ban on mounting unknown drives protects a Linux machine from a rogue USB device, because the flaw triggers in privileged kernel code before those controls apply. Businesses running Linux kiosks, point-of-sale or other public-facing equipment are most exposed, and they must check their vendor's kernel rather than trusting upstream version numbers, since backports make those unreliable.

What to do

  • Update to a kernel that includes the fix for CVE-2026-98232, or backport the upstream fix commit.
  • Check your distribution's security advisory to see whether your kernel is affected, instead of relying on the upstream version number.
  • Treat the researchers' check script result as a hint only, as it can miss vendor backported fixes.
  • Identify Linux devices with USB ports that strangers can reach and patch those first.
Linux USB2Shell CVE-2026-98232 kernel vulnerability privilege escalation

Summarised by CISO AI from The Hacker News, written with Claude Sonnet 5.5. We link back to every original so you can read it yourself.