Get DeafLetter
A weekly selection of signals, vulnerabilities and guides. Critical alerts remain optional.
You can unsubscribe at any time. Privacy policy.
A malicious USB device can achieve root command execution on unpatched Linux systems simply by being plugged in — no login, mount, or user click required. The vulnerability, tracked as CVE-2026-98232, exploits a bug in the Linux kernel's SCSI core subsystem and was disclosed on November 30, 2026, by the Drivesec research team with proof-of-concept demonstrations on both real hardware and in virtual environments. The discovery inverts the canonical security narrative: the vulnerable code became automatically reachable precisely because of a hardening measure implemented in June 2024.
- A crafted USB device achieves root execution on unpatched Linux kernels without any user interaction, merely by physical connection.
- The bug resides in
scsi_cdl_enable(), where device-supplied length fields cause an unsigned underflow on a 64-byte stack buffer. - The USB attack surface opened in June 2024 with commit
52912ca87e2b, not when the code was introduced in Linux 6.5. - Android GKI and Samsung Galaxy A16 suffer only memory leaks, not arbitrary execution, thanks to compiler-enforced bounds checks.
The Mechanism: From 64-Byte Leak to Root Shell
The core of the vulnerability lies in the scsi_cdl_enable() function, introduced in Linux kernel 6.5 via commit 1b22cfb14142. During automatic scanning of a USB storage device that declares ATA support with Command Duration Limits (CDL), the kernel calls this function to read a mode page into a 64-byte stack-allocated buffer. The vulnerable code uses device-supplied length fields without validation.
As Drivesec documents in the original publication, the length calculation occurs via subtraction of hardware-controlled values: len = min_t(size_t, sizeof(buf), data.length - data.header_length - data.block_descriptor_length). The subtraction can produce an unsigned underflow, yielding a length of 64 bytes and a pointer that exceeds the buffer boundaries. The device thus gains the ability to read up to 64 bytes of kernel stack memory and modify a single byte at a chosen offset.
This primitive suffices to bypass KASLR by scanning the stack, then construct fake kernel structures that execute an arbitrary command as root when the device is unplugged. The exploit is probabilistic, but failed attempts do not crash the system: the device can silently retry until success.
"A crafted USB device can make an unpatched Linux machine run an attacker's command as root, without anyone logging in, mounting a drive, or clicking anything"
The Time Window: Hardening That Opened a Gap
The bug's timeline reveals a rare paradox in operating system security. The vulnerable code existed since Linux 6.5 in 2023 but was reachable only through sysfs, requiring explicit administrator interaction. In June 2024, commit 52912ca87e2b ("scsi: core: Disable CDL by default") added a call to scsi_cdl_enable() during automatic USB device scanning, intending to disable CDL by default.
This change, apparently sound from a security standpoint, made the vulnerable function automatically reachable by any plugged-in USB device. According to KernelScan, the effective attack surface begins with kernels 6.6.35, 6.9.6, and 6.10: earlier versions contain the buggy code but do not execute it automatically during USB enumeration. As the independent analysis by The CyberSec Guru observes, "a hardening measure handed untrusted hardware a path into the flawed arithmetic."
Demonstration on Real Hardware and in Virtualization
Drivesec demonstrated the exploit on real hardware using a Cynthion device against Debian 12 with backported kernel 6.12.22+bpo-amd64 and KASLR enabled. The demonstration required three attempts: the first two failed, the third executed whoami and uname as root. The official CVE record confirms a virtual environment replica: on upstream commit cee9395acd80 (Linux 7.3-rc1), a build-specific proof-of-concept with a single vCPU in QEMU/Raw Gadget executed a proof command and created a file owned by UID 0 during automatic enumeration, with both KASLR and NX active.
The bug was also independently discovered by Google's AI system Sashiko before the Drivesec disclosure, as reported by The Hacker News. In 2026, Sashiko attributed 528 fixes to the Linux kernel, though it is unknown whether the discovery of CVE-2026-98232 falls within this specific count.
Scope and Scores: Why Vendors Disagree
Risk assessment shows significant discrepancies among vendors. Red Hat assigns a score of 8.4 with a local attack vector (AV:L), while SUSE and Amazon assign 5.7 with a physical attack vector (AV:P). This divergence reflects differing interpretations of the required access: a crafted USB device is physically connected, but automatic execution without authentication approaches a local attack. The estimated EPSS score is 0.17 percent.
Debian 12 (bookworm) with kernel 6.1 standard is unaffected: the official security tracker classifies the vulnerable code as not present. Debian trixie, with a newer kernel, is instead fixed. Android GKI and the Samsung Galaxy A16 suffer only memory leaks, not arbitrary execution, thanks to compiler-introduced bounds checks that mitigate the out-of-bounds write.
What to Do Now
The fix was committed on September 9, 2026, with hash 3d676e458fe0 and backported to versions 6.6.158, 6.12.112, 6.18.54, and 7.2.8. Infrastructure operators with physically accessible USB ports — kiosks, POS terminals, EV chargers, automotive infotainment, smart home hubs — must verify the actual running kernel version, regardless of the declared distribution. The patch has existed since September: this is a deployment problem, not a development one.
Priority recommendations derive directly from the documented technical context:
- Verify whether the system runs a kernel in the vulnerable window 6.6.35+ / 6.9.6+ / 6.10+ with commit
52912ca87e2bapplied but without the fix3d676e458fe0or subsequent backports. - Identify systems with physically accessible USB ports in uncontrolled environments where an attacker can plug in devices unsupervised.
- Confirm that Debian bookworm systems with standard kernel 6.1 have not been updated to backported kernels that include the vulnerable code.
- Monitor enterprise Android systems for kernel memory leaks, even where arbitrary execution is mitigated by compiler bounds checks.
The Lesson of the Single Byte
USB2Shell demonstrates that the perception of physical attacks as obsolete is illusory. The growing complexity of the Linux kernel, with SCSI functionality automatically exposed during enumeration, has created a bridge between untrusted hardware and privileged memory. The case raises questions about the review process for hardening commits: a change that disables a feature for security can activate an unintended execution path if the called code contains latent vulnerabilities.
The absence of detected in-the-wild attacks and the lack of inclusion in the CISA KEV catalog do not reduce the criticality for unpatched systems with exposed physical attack surface. The problem remains one of deployment: the patch is available, the mechanism is public knowledge, and the cost of crafted hardware continues to fall.
Frequently Asked Questions
Why is the bug reachable only from kernels 6.6.35/6.9.6/6.10 if the code existed since 6.5?
The vulnerable code in scsi_cdl_enable() existed since 6.5 but was invocable only via sysfs with manual interaction. The June 2024 commit 52912ca87e2b added the automatic call during USB scanning, opening the attack surface without interaction.
Does the exploit work on any USB device?
No. A specifically crafted device is required to manipulate the ATA CDL mode page length fields and handle the probabilistic retry protocol. A normal USB flash drive is insufficient.
Which systems are definitively excluded from risk?
According to the Debian security tracker, Debian 12 bookworm with standard kernel 6.1 does not contain the vulnerable code. Android GKI and Samsung Galaxy A16 are excluded from arbitrary execution, suffering only memory leaks.
Sources
Get DeafLetter
A weekly selection of signals, vulnerabilities and guides. Critical alerts remain optional.
You can unsubscribe at any time. Privacy policy.