Where is the error?
The flaw lies in the kernel's SCSI core, the code that manages storage devices. A function in that code enables a storage feature called Command Duration Limits. When a USB device claims to be an ATA disk supporting this feature, the kernel copies the data from the device to a small buffer on the stack. The device-supplied length values are used during this copy, but are never compared to the size of the buffer.
This order is important. The kernel does this during an automatic scan, so it doesn't stop if the screen is locked, logged out of the session, or if there is a policy blocking unknown drives. The device reaches privileged kernel code before any protection is in effect.
According to the kernel advisory, a device that lies about the length can read a maximum of 64 bytes of memory on the kernel stack and change only one byte of it. Read-only access is of little use to an attacker. Single-byte write access is what makes this error dangerous.
From one byte to root
On an experimental machine, the researchers converted this single-byte change into the ability to write anywhere in kernel memory. They disable KASLR, the feature that randomizes where kernel code resides so that an attacker cannot guess its address in advance. They then create fake kernel data structures and run the selected command as root the moment the device is unplugged from the device.
The researchers ran the attack on a Debian machine, with kernel 6.12.22 and with KASLR enabled. They use Cynthion, a small programmable USB tool, to act as a malicious device. The exploit doesn't succeed every time, and the team hasn't released any success rates. But the machine does not crash on a failed attempt. An attacker can easily try again.
Who is at risk?
This bug entered the kernel from Linux 6.5 and remained in all subsequent releases until a fix was applied. A system is vulnerable only if it has USB mass storage support via the usb-storage or uas driver and has a USB port that is physically accessible.
The upstream fix arrived in September, and in October the kernel project published the flaw as CVE-2026-98232. Upstream version numbers do not directly match Linux distributions, as distributions backport features and fixes to older kernels. According to the Debian security tracker, Debian's standard version 12 kernel has never contained defective code. Red Hat released the fix in a kernel, numbered 5.14. Check your distribution's advisory regardless of the upstream version number.
what to do
Update to a kernel that includes the fix, or backport the upstream fix commit into your own kernel build.
If updating is not possible now, reduce risk by:
On machines that don't need to read USB storage, stop usb-storage and uas drivers from loading.
Require authorization before loading kernel drivers for new devices. Tools like USBGuard do this, and setting authorized_default=0 gives almost the same result for new devices.
Researchers have published a script that checks if a system is vulnerable. It may not catch fixes backported by the vendor, so take clear results as indications, not proof.
The first error was caught by an AI tool
Sashiko, an AI code-review system developed by Google that was built for the Linux kernel and later handed over to the Linux Foundation, reported the flaw on the kernel mailing list. Drivesec states that they independently find the same flaw, write fixes and develop effective exploits. Exploit did not write AI.
According to a project review, Sashiko has been credited with 528 Linux kernel CVE fixes this year, according to Google. But the company cautions that it's "too early to make strong claims" about the tool's merits.
Android is basically safe
Android researchers found a memory leak, but no way to root. Phone kernels based on version 6.6 and later are affected, and they expose some kernel memory to the device. The builds the researchers tested, including Google's generic Android kernel and the Samsung Galaxy A16's kernel, use a compiler protection that blocks the memory modification step.
Why Open Ports Matter
As of publication no attacks using USB2Shell have been found, and no victims have been identified. The flaw is not on the US government's list of Known Exploited Vulnerabilities at the time of publication. Physical attacks are difficult to run on multiple machines, and fixes have been available since September.
Researchers point to devices where strangers can access USB ports as a real concern. Examples include self-service kiosks, payment terminals, car infotainment units, EV chargers and smart-home hubs. None of these have been shown to be compromised. These devices show where open ports matter. This is not a list of affected products.




