A USB stick can make a Linux machine execute a command as root without anyone logging in, mounting the disk or pressing anything. The research by usb2shell describes how a custom-built device exploits the automatic scan the kernel performs when it detects a new disk, and turns it into a backdoor that triggers when it is unplugged. The flaw carries the identifier CVE-2026-98232 and affects any kernel from version 6.5 onward.
The attack requires physical access to a USB port, and that is where the good news ends. Ticket kiosks, payment terminals and electric vehicle chargers are within anyone's reach, as are in-flight entertainment screens and unattended industrial panels in plants. Many run Linux with USB storage support enabled and receive new kernels very rarely.
The CVE record places the fix in branches 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3, and Drivesec published the technical detail on November 30 alongside a script that checks whether a specific kernel is exposed. The bug was fixed in September, so the news is not the discovery, but the demonstration that a single byte of write can be turned into a command with maximum privileges.
What happens when the kernel sees a new disk?
Linux scans a storage device as soon as it detects it, before the user sees anything on the desktop. If the device presents itself as an ATA drive with Command Duration Limits support, the kernel calls `scsi_cdl_enable()`, reads a mode page into a 64-byte buffer on the stack and writes it back. That exchange is used to enable response-time limits on modern disks.
The problem is that the lengths returned by the device were used without being checked. The research shows that the subtraction used to calculate the size can overflow and stay at 64, while the buffer pointer moves past the end. A tampered device thus gets the kernel to send it up to 64 bytes of stack and to zero a byte at a position of its choosing, and all of it happens during the automatic scan.
That byte is little, and it is enough. The stack leak breaks KASLR, the randomization that protects kernel addresses, and the controlled write is used to build fake structures until arbitrary write is achieved. It is the difference between a theoretical flaw and a complete exploitation chain.
Why is a single one-byte write enough?
Drivesec's demonstration uses a Cynthion, a board that impersonates a USB device, against a stable Debian with kernel 6.12.22 and KASLR enabled. When the device is unplugged, the kernel executes a command chosen by it with root privileges. The exploit is probabilistic, although failed attempts do not lock up the machine, so it can be repeated until it succeeds.
It is worth clarifying what "without interaction" means. No login or disk mount is required, and it does not matter either if the machine has its screen locked. The trigger is the device scan, which the kernel performs on its own when someone plugs it in, and that is why "do not mount unknown drives" policies do not cover this case.
The condition is specific: USB storage support is required, whether `usb-storage` or `uas`, loaded or available. Almost any desktop ships with it to read a pendrive, and that convenience is exactly what opens the door.
Which machines are exposed?
The realistic inventory includes ticket kiosks; payment terminals; electric vehicle chargers; airplane screens; industrial control panels and infotainment head units. These are machines with Linux inside, accessible ports and slow update cycles, and in many cases the user does not even know which kernel they run. The home laptop is vulnerable too, although the attacker would need to get close and the real risk is lower.
Android is a mixed picture. Kernels 6.6 and later still return stack contents, but the compiler checks reviewed by the team keep the write within the buffer in the builds analyzed, including the Galaxy A16 with its stock kernel. The leak exists and root has not been demonstrated.
| Kernel branch |
First fixed version |
| Linux 6.6 |
6.6.158 |
| Linux 6.12 |
6.12.112 |
| Linux 6.18 |
6.18.54 |
| Linux 7.2 |
7.2.8 |
| Linux 7.3 |
7.3 |
Distributions usually incorporate the fix without changing the version number, so looking at `uname -r` is not enough. The commit that fixes the flaw is `3d676e458fe0`, and Drivesec maintains a public script that any administrator can download and run after reviewing it. Debian already has update advisories, and the other distributions have been publishing theirs.
How to check the machine without breaking anything?
The checker is a shell script that can be read before running it, something important when it comes from a researcher's website. Download the file, review which commands it uses and then run it on machines with accessible ports. The check does not modify the system and serves to separate fixed kernels from those still exposed.
If the result points to a vulnerable kernel, there are two paths. The first is to update to the vendor package that includes the fix, and then verify that the machine booted with it, because installing without rebooting leaves the flaw active. The second is to apply the patch by hand to a custom kernel, a reasonable option for an industrial machine with a fixed image.
When neither is possible, mitigations remain. Preventing `usb-storage` and `uas` from loading on ports that do not use storage eliminates the surface, and booting with `authorized_default=0` or a USBGuard whitelist stops the kernel from scanning devices no one has authorized. These are behavioral patches, not code patches, and they require reviewing beforehand which peripherals must keep working.
The uncomfortable detail of who found the flaw
The timeline leaves a striking fact. The AI review agent Sashiko, a project Google promoted and that now lives under the Linux Foundation, flagged the problem on the linux-scsi list in July. Drivesec found it on its own in August, built the exploit and wrote the patch that landed in September. Two different paths to the same byte.
That crossover says something about how the kernel is reviewed in 2026: automated tools detect patterns a human reviewer can miss, and even so someone who understands the scope is needed to turn it into an exploitation chain. The flaw was not invisible, it was in a function almost no one looks at because it only runs with uncommon hardware.
For those who administer machines with exposed ports, the lesson is not the spectacle of the USB drive that gives root. Automatic hardware scanning is a surface that activates on its own, and USB storage support should be treated as an optional feature.
As with every round of kernel flaws, the boring part decides the outcome: a kernel inventory, a reboot window and a list of machines where the USB port should not be available. The October kernel vulnerability review already left the same feeling, and this time the addition is physical: all it takes is getting close and plugging in.