Linux kernel maintainers fix CVE-2026-98232 USB bug that gave root from a plug-in
Linux kernel CVE-2026-98232 lets a malicious USB device leak kernel memory and execute commands as root during automatic device scanning. Fixed kernels and USB restrictions reduce exposure. The issue matters because many Linux devices expose USB ports and assume plugged-in devices are safe.
The Linux kernel fix for CVE-2026-98232 landed on 2026-09-09 and was published on 2026-10-06. The bug, called Usb2shell, affects Linux 6.5 and later when USB mass storage support is present and a device can be plugged in. It fires during automatic device scanning, before any disk is shown to the operating system. Drivesec reported a proof of concept that used a Cynthion USB device to run whoami and uname as root on a stock Debian 6.12.22+bpo-amd64 kernel.
The bug sits in Command Duration Limits support, a storage-device feature added in Linux 6.5. When a new SCSI device claims to be an ATA device with CDL, the kernel calls scsi_cdl_enable() and uses reply lengths without validation. That lets the device leak up to 64 bytes of kernel stack and clear one stack byte at a chosen offset. The exploit is probabilistic, but failed attempts did not crash the system. Fixed releases include 6.6.158, 6.12.112, 6.18.54, 7.2.8 and mainline 7.3.
The bug converts a physical USB port into a kernel attack surface, similar in effect to remote software bugs but requiring physical access to a port. The source lists car infotainment, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment, industrial control screens and smart-home hubs as examples where ports may be reachable. Android kernels on 6.6 and later leak kernel stack contents, but checked builds used compiler bounds checks that kept writes inside the buffer, limiting impact.
Distributions and device vendors may apply fixes to older kernels without changing version numbers, so operators must check vendor advisories for CVE-2026-98232 or the commit 3d676e458fe0. The immediate mitigation is to avoid building or auto-loading usb-storage and uas where mass storage is not needed, or to use USB allow-listing such as USBGuard with authorized_default=0. The practical stakes are highest for embedded Linux and enterprise devices that assume plugged-in devices are not hostile.
Embedded Linux and enterprise devices with exposed USB ports are affected because a malicious plug-in can gain root without user interaction. Operators need patched kernels or USB allow-listing to stop automatic scanning of unauthorized devices.
Sources (1)
- [1]Usb2shell: Root on Linux from a USB Plug-In(https://usb2shell.com/)