Skip to content
trendoviz

AI for Cybersecurity · Industry

USB2Shell Kernel Flaw Enables Root Access via USB

A Linux kernel vulnerability, dubbed USB2Shell, lets crafted USB devices execute commands as root without user interaction; it was patched in September 2026.

Published

Summary

Researchers at Drivesec disclosed a Linux kernel vulnerability called USB2Shell that allows a malicious USB device to gain root privileges without any user login. The flaw, fixed in September 2026 and recorded as CVE-2026-98232, affects kernels from version 6.5 onward that load USB mass‑storage drivers.

Key facts

  • Vulnerability name: USB2Shell
  • CVE identifier: CVE-2026-98232
  • Affected kernel range: Linux 6.5 onward until patched
  • Fix released: September 2026
  • Exploit requirement: USB storage (usb‑storage or uas driver) and physical USB access
  • Mitigations: update kernel, disable usb‑storage/uas drivers, use USB allow‑listing (e.g., USBGuard)

Details

The flaw resides in the kernel's SCSI core, specifically in handling the Command Duration Limits feature. When a USB device masquerades as an ATA disk supporting this feature, the kernel copies length values supplied by the device into a small stack buffer without proper bounds checking. By providing oversized length values, an attacker can overwrite up to 64 bytes of kernel stack memory and, on the researchers' test system, modify a single byte to gain arbitrary kernel writes. This enables defeating KASLR, forging kernel structures, and executing commands as root when the device is unplugged. The exploit was demonstrated on a Debian machine running kernel 6.12.22 using a programmable USB tool called Cynthion. The vulnerability was first flagged by Google's AI‑based code‑review tool Sashiko, which reported it to the kernel mailing list before Drivesec independently discovered it.

No successful real‑world attacks have been reported, and the exploit is probabilistic but does not crash the system on failure. The vulnerability does not affect Android kernels beyond a memory‑leak issue, and many distributions have backported the fix regardless of the upstream kernel version.

Why it matters

The vulnerability primarily concerns environments where untrusted individuals can physically access USB ports, such as self‑service kiosks, payment terminals, car infotainment systems, EV chargers, and smart‑home hubs. For system administrators, the flaw means that even devices with locked screens or logged‑out sessions remain exposed until the kernel is patched or the USB storage drivers are disabled. Organizations should assess the presence of USB mass‑storage drivers on critical machines and consider enforcing USB allow‑listing policies to reduce attack surface.

Developers and security teams can use the provided script from the researchers to check for vulnerable kernel versions, though they should verify against vendor backports. Prompt kernel updates remain the most reliable mitigation, while disabling unnecessary USB storage support offers an additional layer of defense.

What's next

Affected users should update to a kernel that includes the September 2026 fix or backport the upstream commit. Where immediate updates are not feasible, disabling the usb‑storage and uas drivers or employing USB allow‑listing tools such as USBGuard is recommended. Open questions include the exact prevalence of the flaw across different Linux distributions that may have backported fixes and the real‑world likelihood of an attacker gaining physical USB access in targeted environments.

Sources

Original source: The Hacker News

Found an error? Report it.