Skip to content
Brief Security & Trust ·

Researchers show a rigged USB device can run root commands on unpatched Linux

Drivesec says a crafted USB device can lead an unpatched Linux 6.5 or later machine to run its command as root.

In brief
  • Drivesec says a crafted USB device can run a command as root on unpatched Linux 6.5 and later. No login, mount or click is needed.
  • The kernel trusts the device during its automatic scan, before user-level rules apply. Check your vendor's advisory for CVE-2026-98232.

Drivesec, an Italian security firm, said on 30 November that a crafted USB device can make an unpatched Linux machine run a command as root, the all-powerful account. No login, mount or click is needed. The flaw is tracked as CVE-2026-98232 and called USB2Shell. It affects Linux 6.5 and later with USB storage drivers and a reachable port. Drivesec built the attack on a Debian machine. The command runs when the device is unplugged.

The kernel scans a new storage device on its own. For a device claiming a certain disk feature, it copies the reply into a 64-byte memory area. It trusts the length values the device gives. A lying device can get some kernel memory back and zero one byte it picks. This runs before any login, lock screen or mount rule applies. The Hacker News reported the attack was shown on one machine, did not always work, and no real-world attacks are known. Drivesec found only a leak on the Android builds it checked.

So the kernel trusts the device before any user-level rule applies, and no-mount policies do not cover this kind of flaw. Drivesec lists car units, EV chargers, point-of-sale terminals and kiosks as exposed. Teams that ship or run them should ask: which kernel does each unit run, has the vendor backported the fix for CVE-2026-98232, and can a stranger reach a USB port?

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: Drivesec.