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

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
T1068 · Exploitation for Privilege EscalationResearchers demonstrated using the kernel flaw to turn a one-byte memory change into the ability to write to kernel memory and run a chosen command as root.T1200 · Hardware AdditionsThe demonstrated attack uses a crafted USB device connected to a machine with a reachable USB port.
CVE
Products
AndroidOn Android, the researchers found only a memory leak, not root. Phone kernels on version 6.6 and newer are affected and hand the device some kernel memory, but the builds the researchers checked, including Google'sLinux kernelThe flaw, dubbed "USB2Shell," is in the Linux kernel, which scans a USB storage device the moment it is plugged in, before anyone signs in. It was fixed in the kernel in September and published as CVE-2026-98232 in
Tools
CynthionThe researchers' technical write-up describes running the attack against a Debian machine running kernel 6.12.22, with KASLR switched on, using a Cynthion, a small programmable USB tool.SashikoThe bug was first flagged not by a person but by Sashiko, an AI code-review system Google built for the Linux kernel and gave to the Linux Foundation. Sashiko reported it on the kernel mailing list. Drivesec says it
