usb2shell (CVE-2026-98232): Malicious USB Device Can Gain Root on Linux the Moment It Is Plugged In

Cyber · 2026-12-01 · By Reef Administrator - H.A

usb2shell (CVE-2026-98232): Malicious USB Device Can Gain Root on Linux the Moment It Is Plugged In

A Linux kernel bug in SCSI CDL handling lets a crafted USB storage device run commands as root during plug-in, with no login or mount; update the kernel and reboot.

A newly disclosed Linux kernel flaw lets a specially built USB device take root control of a computer the moment it is plugged in. Nobody has to log in, open a file or mount the drive. The bug is tracked as CVE-2026-98232 and its finders, the Italian security firm Drivesec, have named it usb2shell. Red Hat scores it 8.4 out of 10 (Important).

The fix has been in the kernel since September and major Linux distributions have already shipped patched kernels. Drivesec published its full write-up on 30 November 2026. No attacks in the wild have been reported, but researchers have shown it can give root on real hardware, so laptops, desktops and kiosks should be updated.

What the flaw is

When you plug in a USB storage device, the Linux kernel talks to it through the SCSI layer to learn what kind of device it is. Since Linux 6.5, the kernel also checks whether the device supports Command Duration Limits (CDL), a feature of modern ATA hard drives. This check is done by a function called scsi_cdl_enable().

The kernel trusted the length values the device sent back in its answer (a "MODE SENSE" reply) without checking them. A malicious device can lie about those lengths. That lets it:

With careful engineering, the researchers turned that into running their own commands as root. It does not work on every attempt, but it did work on physical test machines.

The fix is titled "scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()". It makes the kernel check the lengths before using them.

Why it matters

The highest risk is for laptops that travel, shared or public computers, kiosks, point-of-sale systems, and Linux-based devices in cars and factories.

Who is affected

Timeline

Fixed kernel versions

Install the update and reboot. The running kernel stays vulnerable until you restart. Check with uname -r.

If you can't patch right away

Sources

REEF SENTINEL