Linux kernel · CVE-2026-98232
USB2Shell
Next cycleRoot via a rigged USB device; needs local access.
TL;DR
A Linux kernel bug lets a rigged USB device, once plugged in, get commands run as root; no login or click needed. Drivesec showed it but shared no code; no attacks seen. It hits kernels 6.5 and later, plus RHEL 9. Update the kernel.
More details
When the kernel scans a new USB storage device that claims Command Duration Limits (CDL) support, scsi_cdl_enable() trusts length fields in the device's reply, so the device can read up to 64 bytes of kernel stack and overwrite one stack byte; Drivesec chained this into root on a stock Debian 6.12.22+bpo kernel with a Cynthion USB board, an attack that is probabilistic but doesn't crash the machine when it misses. On the Android builds Drivesec checked (Android GKI and the Samsung Galaxy A16 kernel) it is only a leak, and Red Hat adds that a crafted virtual device attached to a VM guest can trigger it too. Sashiko AI Review first reported the bug on the linux-scsi mailing list on 17 Jul, Drivesec found it independently and sent the fix there on 4 Sep, and fixed stable kernels came out on 25 Sep and 3 Oct, two months before the write-up on 30 Nov.
How scary is it?
Are you affected? only if all are true
1A kernel with CDL support, unpatchedcommand
The bug is in CDL support, added in 6.5; Red Hat also lists RHEL 9's 5.14 kernel as affected. Upstream fixed it in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Debian 12's and Ubuntu 22.04's default kernels and RHEL 6, 7 and 8 aren't affected. Distro kernels backport fixes, so compare with your distro's version under Update. On Debian, uname -v shows the package version.1,2,9,10,11,8
uname -r2USB mass storage driver present
The kernel needs usb-storage or uas built in or loaded automatically. Drivesec's checker counts it as present if /sys/module/usb_storage or /sys/module/uas exists, or either module is installed for the running kernel.1,8
3Unknown USB devices are acceptedcommand
The attacker needs brief physical access to a USB port and a custom USB device; Drivesec used a Cynthion board. Red Hat adds one more way in: someone who can attach virtual devices to a VM guest. No login, mount or click is needed: the bug fires during the kernel's automatic scan of the device. USB allow-listing stops that scan for devices that aren't authorised. Drivesec's checker reads the setting with this command; a 0 means the kernel doesn't authorise new devices by default, 1 (the kernel default) means it does, and 2 means only devices on internal ports are authorised by default.1,8,13,9
cat /sys/bus/usb/devices/usb*/authorized_defaultWhat to do
1Update the kernel and reboot
Fixed: Debian 13 in 6.12.113-1 (DSA-6568-1) and Debian 12's optional linux-6.12 kernel in 6.12.113-1~deb12u1; Ubuntu 26.04 in 7.0.0-42.42, 24.04 in 6.8.0-149.149 and 22.04's 6.8 HWE kernel in 6.8.0-149.149~22.04.1; RHEL 10.3 in 6.12.0-264.19.1.el10_3 and RHEL 10.2 EUS in 6.12.0-211.76.1.el10_2 (both 23 Nov), RHEL 9 in 5.14.0-741.24.1.el9_9 (19 Nov; 20 Nov in Red Hat's CVE data) and RHEL 9.8 EUS in 5.14.0-687.69.1.el9_8 (24 Nov). A few Ubuntu kernels for NVIDIA and Xilinx hardware are still pending (no date given). For a device with its own vendor kernel, Drivesec says to look for the vendor's advisory for CVE-2026-98232 or for fix commit 3d676e458fe0 in its source.11,10,9,1,3
Latest safe versions checked 3 Dec
2Public USB ports first
Drivesec names Linux systems with USB ports strangers can reach: car infotainment and telematics units, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment, industrial HMIs and smart-home hubs. That's where we'd act first: Drivesec doesn't rank them, this is our advice. If you make or run such devices, ask the vendor whether its kernel has the fix.1
3Can't update yet? Limit USB
From Drivesec: where mass storage isn't needed, don't build or auto-load usb-storage and uas, which removes the attack surface. Or use USB allow-listing (USBGuard, or authorized_default set to 0) so the kernel doesn't scan devices that aren't authorised.1,13
4About Drivesec's checker
Drivesec publishes a checker script and says to download it, read it, then run it. It compares upstream version numbers only, so it can flag a distro kernel with the fix backported (Drivesec says to check your vendor's advisory then), and from our reading of the script it reports any kernel older than 6.5 as not affected, including RHEL 9's 5.14 kernel, which Red Hat lists as affected and fixed.1,8,9
5Why it isn't Patch now
Someone has to be at the machine with a custom USB device (or, for a VM, able to attach virtual devices to it), and the attack doesn't always work the first time. Drivesec showed it working but published no exploit code, we found no reports of attacks, and it isn't on CISA's list of exploited bugs. Red Hat rates it Important (8.4) and Ubuntu Medium. We'd change the verdict if exploit code is published or attacks are reported.1,12,9,10
This page shows you how to check. It can't tell you you're safe.
Sources (14) and changelog
- Drivesec: usb2shell write-up, who is affected, root demo on Debian, Android, mitigations, timeline 30 Nov
- CVE record (kernel CNA): CVE-2026-98232, since 6.5, fixed versions, reachable during USB scan 6 Oct
- Linux kernel (GitHub mirror): the fix by Drivesec, reported by Sashiko AI Review 4 Sep
- kernel.org: 7.2.8 changelog, includes the fix 25 Sep
- kernel.org: 6.18.54 changelog, includes the fix 25 Sep
- kernel.org: 6.12.112 changelog, includes the fix 3 Oct
- kernel.org: 6.6.158 changelog, includes the fix 3 Oct
- Drivesec: usb2shell-check.sh, the checker script
- Red Hat: CVE data, Important 8.4, physical or virtual device, fixed for RHEL 9, 9.8 EUS, 10.2 EUS and 10.3, RHEL 6 to 8 not affected
- Ubuntu: priority Medium, fixed for 24.04, 26.04 and 22.04's 6.8 kernels, 22.04's 5.15 kernel not affected
- Debian tracker: fixed in Debian 13 6.12.113-1 and linux-6.12 6.12.113-1~deb12u1, Debian 12's linux not affected
- CISA KEV catalog: not listed
- Linux kernel docs: USB authorization, authorized_default
- linux-scsi: Sashiko AI Review's report of the bug, 17 Jul 2026 (linked from the fix's Closes: tag) 17 Jul
- Published.