A malicious USB stick can get root on an unpatched Linux box
CVE-2026-98232, nicknamed usb2shell, abuses a stack bug in the kernel's SCSI code during automatic USB scanning. No login, mount or click required.
Security researchers at Drivesec published details on 30 November of a Linux kernel bug that lets a plugged-in USB device run a command of its choice as root, with no login, mount or click needed. The flaw, CVE-2026-98232, sits in scsi_cdl_enable(), part of the SCSI subsystem’s Command Duration Limits support added in kernel 6.5. When a device claims CDL support, the kernel reads its MODE SENSE response into a 64-byte stack buffer without validating the length the device reports, so a crafted device can read back kernel stack memory and overwrite one byte at a position it chooses, enough to defeat KASLR and hijack execution during the kernel’s automatic device scan.
Drivesec reported it privately on 2 September, and the fix landed on 9 September, three months before this write-up. Red Hat rates it 8.4, Important. Fixed versions are 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3; anything from 6.5 up to those is vulnerable if it has USB mass-storage support enabled and a port someone can physically reach.
# a system is exposed if all three hold:
# - kernel 6.5+ without the fix
# - usb-storage or uas driver loaded
# - a reachable USB port
Why it matters: check your kernel version against the fixed releases above, especially on anything with an exposed USB port, kiosks, shared workstations, build machines in open offices. Most mainstream distributions have already shipped the patch.
The caveat: this needs physical access to a USB port. There’s no sign of in-the-wild exploitation, and the bug has quietly had a fix available since September.