I thought USB2Shell was another joke “2Shell” name. It isn’t. CVE-2026-98232 is a real Linux kernel bug that a USB device can trigger the moment it’s plugged in: no login, no click, no mount, even with the screen locked.
The good news: it needs physical access to a USB port, and the fix is an ordinary kernel update. The trap: you can update and reboot and still run the old kernel. Here’s how it works, how to check, a quick shield, and the fix.
Check your machine and your distro’s advisory first, and don’t blindly copy commands: Ubuntu · Debian.
Watch the video
Real Ubuntu 26.04 VMs: check, plug in a blank test stick, shield, install the fix, and the “still the old kernel” trap.
The quick fix
- Install your distro’s fixed kernel: Ubuntu 26.04 7.0.0-42+, Ubuntu 24.04 6.8.0-149+, Debian 13 6.12.113-1+.
- Reboot, then run
uname -rand make sure the new kernel is the one running. - Can’t reboot yet and don’t need USB storage? Block
usb-storageanduas. - Kiosks and shared machines: allow-list USB devices (USBGuard).
What is the bug?
When you plug in a USB stick, the kernel talks to it straight away to learn what it is. Since Linux 6.5 that includes Command Duration Limits (CDL), where a disk promises how long a command may take. In scsi_cdl_enable(), the kernel trusted length fields sent by the device.
A malicious device can use that for a kernel memory leak plus a tiny write, which Drivesec chained into root on a stock Debian kernel. It was first flagged by Sashiko, Google’s AI code reviewer; Drivesec found it independently, wrote the fix and built the exploit. No attacks have been seen in the wild.
Check your machine
uname -r # which kernel is RUNNING
grep -w scsi_cdl_enable /proc/kallsyms # the code path exists in this kernel
Compare the running kernel with your distro’s fixed version above.
Quick shield: no reboot yet
If you don’t need USB storage, stop usb-storage and uas from loading. On the test VM I wrote a modprobe file that blacklists both and makes them fail to install.
Real finding: the block did not stop the module loading on plug-in until I ran sudo systemctl restart systemd-udevd, because udev caches its config.
The trap: updated, rebooted, still vulnerable
On the test VM, installing the fixed kernel left uname -r on the old one until the reboot. Worse, on a machine whose boot menu prefers another kernel flavour (here a realtime kernel, like some vendor images), the update and reboot still booted the old kernel. The fix was setting the flavour back to generic and running update-grub. Always check uname -r after the reboot.
Educational: throwaway test VMs and a blank QEMU test stick, no exploit shown or shared. Understand each command before you run it.
Summary
- The bug: the kernel trusted lengths from a USB device in
scsi_cdl_enable(). Plug-in to root, with physical access. - Fix: the fixed kernel, reboot, then confirm with
uname -r. - Shield: block
usb-storage+uasand restart udev, or allow-list USB with USBGuard.
Also on Linux servers: NFS2ROOT: port 2049 to root
Sources: The Hacker News · Drivesec write-up · NVD · Upstream fix
More on YouTube
Prefer watching? The full USB2Shell walkthrough is on our YouTube channel: watch the video. For more hands-on breakdowns of security bugs, Linux servers and dev tools, subscribe at youtube.com/@fineshotai.
