USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Before Login

· Original article ↗

Summary

Drivesec researchers demonstrated that a crafted USB device can exploit Linux kernel flaw CVE-2026-98232 to run commands as root before login. A fix has been available since September; no real-world attacks are known.

Key points

  • The flaw is in the Linux kernel's SCSI core, where USB storage is automatically scanned before login; a device can provide unchecked length values.
  • The researchers said a crafted device can read up to 64 bytes of kernel stack memory and change one byte. In a test, they turned this into arbitrary kernel-memory writes and root command execution.
  • The flaw was introduced in Linux 6.5. Exposure depends on USB mass-storage support and an accessible USB port; distribution backports mean upstream version numbers alone may not indicate exposure.
  • Drivesec demonstrated the exploit on Debian with kernel 6.12.22 using a Cynthion programmable USB tool. The exploit is probabilistic, and failed attempts did not crash the test machine.
  • The kernel fix has been available since September. The article says Debian's standard version 12 kernel did not contain the flaw, while Red Hat shipped a fix in a kernel numbered 5.14.
  • Researchers found only a memory leak on the Android builds they checked; compiler checks blocked the memory-changing step. No real-world attacks or victims have been identified.

Article Details

Vulnerability Types
  • Kernel stack out-of-bounds read and write
Affected Versions
  • Linux kernel 6.5 and later, before the fix is applied
  • Android kernels 6.6 and newer; researchers reported a memory leak rather than root access in the builds they checked
Exploitation Status
not_reported
Exploit Availability
unknown
Patch Status
available

MITRE ATT&CK

CVE

Products

Tools

Related Articles