USB2Shell Linux kernel flaw gives malicious USB devices root without login
Original title: USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login
CVE-2026-98232, introduced in Linux 6.5 and fixed in September, has no known real-world attacks.
Drivesec showed a crafted USB storage device can make an unpatched Linux kernel run an attacker command as root during the automatic device scan, before login or mounting. The SCSI core copies device-supplied lengths into a stack buffer without a bounds check, allowing a 64-byte stack read and a one-byte overwrite that researchers turned into arbitrary kernel writes on one test machine. Debian 12’s standard kernel never had the bug, while Red Hat shipped a fix in a kernel numbered 5.14. No victims are identified, and the flaw is not in CISA’s KEV catalog.
Unconfirmed: No real-world attacks or victims have been identified, and the exploit is probabilistic with no published success rate.
- They tested Debian kernel 6.12.22 with KASLR enabled, using a Cynthion USB device.
- A failed attempt does not crash the machine, so the attacker can retry.
- Checked Android builds leak kernel memory but block the one-byte overwrite.
- Sashiko, Google’s kernel review AI, reported the bug; Drivesec built the exploit.
- A machine is exposed only with usb-storage or uas and a reachable USB port.
Impact: Root command execution from a malicious USB device
| Product | Affected |
|---|---|
| Linux kernel | 6.5 onward until the fix |
| Google Android | phone kernels 6.6 and newer |
- 1.Update to a kernel that includes the fix, or backport the upstream fix commit.
- 2.Stop usb-storage and uas from loading on machines that do not need USB storage.
- 3.Require USB approval with USBGuard or the authorized_default=0 setting.
- CVEs
- CVE-2026-98232
- Products
- Linux kernelAndroid
- Organizations
- DrivesecLinux Foundation
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-98232 | Linux kernel: scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable() scsi_cdl_enable() uses length fields returned by… | — | — |
From the original article
4 min read at thehackernews.com
A crafted USB device can make an unpatched Linux machine run an attacker's command as root, without anyone logging in, mounting a drive, or clicking anything, researchers at Drivesec showed yesterday. The 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
thehackernews.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.