The news today reads “Linux flaw leads to root via a USB device”.[4] That is accurate, and it tells a defender almost nothing. Root is an outcome. It says how bad the end state is, not what was exploited to get there, and so it does not say which control would have stopped it. TLCTC asks the other question: which generic vulnerability did each step exploit?
For USB2Shell the answer is a three-step path, and the middle step is the interesting one:
#8 ||[physical][@External→@Org]|| →[Δt=~seconds] #3 →[Δt=~seconds] #7
A device is plugged in (#8). The kernel queries it during the automatic scan and trusts the length fields in the reply (#3). The exploit then runs a command of the attacker’s choosing as root (#7). This post explains why the kernel flaw is #3 Exploiting Client and not #2 Exploiting Server, where the #7 begins, and why both useful controls sit before the kernel code runs. It is built from the fix commit and the CVE record, which differ from the news reports in three details.
Read the commit, not the headline
The primary source is Linux commit 3d676e458fe0, “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”, written by Alberto Carboneri and Pimen Flavian Dei of Drivesec and merged by the SCSI maintainer on 10 September 2026.[1] The CVE record, published by the Linux CNA on 6 October, repeats its text.[2] The commit describes the bug in four sentences:
“scsi_cdl_enable() uses length fields returned by MODE SENSE to locate the ATA feature mode page in a 64-byte stack buffer. A target can report a total length shorter than its mode header and block descriptors. The unsigned subtraction used for the MODE SELECT length can wrap, and the separately computed buf_data can point beyond buf.”
“This is reachable while scanning a USB storage device that identifies as an ATA device and advertises CDL support. No filesystem mount or userspace access to the block device is required.”
scsi_cdl_enable() belongs to Command Duration Limits (CDL) support, added in Linux 6.5 by commit 1b22cfb14142.[3] When a storage device announces CDL, the kernel reads one of its mode pages, edits a field and writes the page back. To find the page in the reply it subtracts the header length and the block descriptor length the device reported. Neither value was checked. A device that reports a total shorter than those two values makes the subtraction wrap and moves the pointer outside the 64-byte buffer on the kernel stack.
Two effects follow, both during the automatic scan. The kernel clears the low two bits of a stack byte the device chose, outside the buffer. It then sends up to 64 bytes of kernel stack back to the device in its MODE SELECT command. The commit’s proof, on a one-vCPU QEMU guest with an emulated USB gadget, “executed a fixed proof command inside the guest and created a UID-0-owned marker during automatic enumeration, with KASLR and NX enabled.”[1] The public demo used a Cynthion USB device and showed whoami and uname running as root.[4]
Secondary reports differ from the commit in three places. Where they differ, this analysis follows the commit:
| Detail | News report | Commit |
|---|---|---|
| The leak | An out-of-bounds read of kernel stack | Stack bytes copied out to the device in the MODE SELECT payload |
| The corruption | A one-byte write at a chosen offset | The low two bits of a chosen out-of-bounds stack byte cleared |
| When the command runs | When the device is unplugged | During automatic enumeration |
None of the three changes the classification, but the first one matters for the next section: the stack bytes travel to the device. The leak is part of a conversation that the host started.
Affected per the CVE record: kernels from 6.5 up to the fixed releases 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3.[2] The record carries no CVSS score. Red Hat rates it 8.4 and SUSE 5.7. Debian 12 and SUSE Linux Enterprise 15 SP7 and 16 are reported not affected. Debian 13 is fixed from 6.12.113-1, Ubuntu 24.04 from 6.8.0-149.149, and RHEL 9 and 10 through backports.[4] The CVE is not in the CISA KEV catalogue; no exploitation in the wild has been reported. One footnote on how the bug was found: the commit credits an AI review tool, Sashiko, as reporter alongside the independent Drivesec research, and carries an Assisted-by: LLM tag.
Who asked whom: the kernel as client
The reflex is “kernel bug, so #2”: the kernel is the most privileged thing on the machine, so it must be the server. TLCTC does not classify by privilege or by location. R-ROLE classifies by the role of the flawed component relative to the attacker, and the core paper fixes how the role is found: “Roles are established by call direction at any interface, including intra-system privilege interfaces (syscall, hypercall, IPC, driver IOCTL); a network is not a precondition.”[5]
So follow the calls. In SCSI the host is the initiator and the device is the target. The kernel sends MODE SENSE, the device answers, and the kernel parses the answer. The attacker never sends the kernel a request. The attacker’s device only answers one, and the flaw is in the code that reads the answer. That is a client consuming a server’s response, the same position a browser is in when it parses a malicious web page:
- Definition. An attacker targets implementation flaws within any component acting in a client role.
- Generic vulnerability. Client-side implementation flaws enable unintended behavior.
Compare CVE-2025-21333 in Hyper-V, which we analysed in September.[6] There a local user calls into the kernel through a system call, and the kernel serves that request with a flawed copy. The caller is the attacker, so the kernel is the server and the flaw is #2. Same privilege level, opposite call direction, opposite cluster:
| Case | Who calls | Flawed code handles | Role | Cluster |
|---|---|---|---|---|
| CVE-2025-21333 (Hyper-V VSP) | Local user calls the kernel | The attacker’s request | Server | #2 |
| CVE-2026-98232 (USB2Shell) | The kernel calls the device | The attacker’s reply | Client | #3 |
This is not hair-splitting. The developer’s rule for client-role code is to “never trust incoming data from servers, files, URLs, or APIs”.[5] A peripheral is the server here. Every length a device reports to the kernel is attacker-controlled input whenever the attacker controls the device, and the kernel’s storage, HID and network drivers are full of code that parses such replies. Treating that code as server-side makes it easy to forget that the other end is choosing what the kernel reads.
The two effects of the flaw, the leak and the bit-clear, are one step. Both come from one missing check in one component, processed in one exchange (Axiom VI: one step, one generic vulnerability). The leak is not a separate Data Risk Event either. Kernel stack bytes are system state, and a system made to send what its owner never authorised it to send is already compromised: that is the System Risk Event of the #3 step.[7]
The device: #8, and why not #9 or #10
The attack needs a device on the port. That is the first step, and it is #8 Physical Attack: the generic vulnerability is the “physical accessibility of infrastructure”.[8] Its sub-cluster is #8.1 mechanical, a device plugged in, as opposed to #8.2 signal, energy through the medium. #8 is a bridge cluster, so the boundary is recorded: ||[physical][@External→@Org]||.
How the device gets there decides whether more steps are added. Three versions are worth separating:
| How the device arrives | First step | Why |
|---|---|---|
| The attacker plugs it in (the demo) | #8 | Physical reachability of the port; nobody is manipulated |
| Left in a car park for a finder to plug in | (#8 + #9) ||[physical/human]|| | Physical delivery plus a human decision to insert it, as with Agent.BTZ in 2008[9] |
| A genuine product whose firmware was subverted before delivery | #10 at the trust acceptance event | The supplied artifact was subverted before the organisation accepted it (R-SUPPLY) |
The first row is not #10. The attacker built the device; no trusted product or supplier was subverted. And the kernel flaw is not #10 just because the code came from upstream Linux: “A defect in a legitimately supplied component is not #10: classify it where it is exploited”.[5]
Where #7 begins
The device sends data: lengths, a mode page. It never sends code that the host runs. The CVE on its own is therefore #3 and nothing more. That matters on systems where the exploit cannot complete: on Android GKI kernels 6.6 and later, compiler bounds checks reportedly block the write and leave only the leak.[4] That is still a successful #3 step with its own SRE, without a #7.
Where the full exploit succeeds, an attacker-chosen command runs as root. R-EXEC requires a #7 step at that moment: Foreign Executable Content is “attacker-controlled or otherwise untrusted program content that a general-purpose execution engine in the target environment loads, interprets, or executes through its designed execution capability.”[10] A shell command run by the system’s own loader fits that exactly. Neither source says how a two-bit clear and a 64-byte leak become command execution; the execution itself is reported by both. The #7 is therefore recorded, and the mechanism is left open.
Two smaller points. The exploit is probabilistic; in the public demo two attempts failed without a crash and the third succeeded. Only the success is on the path, because a cluster step asserts that its SRE happened. And the path ends at #7. The proof created a marker file owned by root and touched no data, so no [DRE] is evidenced. On a real workstation, root makes loss of confidentiality, integrity and availability of the host’s data very likely: those are expected consequences, listed here and not written into the path.
Seconds from plug to root: the controls sit before the kernel
The whole chain runs inside the automatic scan. Both transitions are seconds, velocity class VC-4. No analyst or SOAR playbook gets between the #3 and the #7: the Δt bounds the window in which detection and response could still act, and here there is no window.[11] Detection still matters for finding out afterwards. Prevention has to happen at the two earlier levers:
| Step | Lever | Controls |
|---|---|---|
| #8 | Physical reachability of interfaces | Physical control of exposed ports (kiosks, meeting rooms, unattended laptops); USB device authorization before drivers bind (authorized_default=0, USBGuard allowlisting) |
| #3 | Client-role implementation flaws | A fixed kernel (6.6.158, 6.12.112, 6.18.54, 7.2.8, 7.3 or your distribution’s backport); where USB storage is not needed, remove the code path (block the usb-storage and uas modules) |
| #7 | Execution of foreign content | Weak here: the attacker already controls the kernel before the command runs |
One caution on the #8 row. A device allowlist decides on what the device says about itself: vendor and product IDs, serial numbers, interface classes. A crafted device can claim to be an allowed one. Device authorization narrows the #8 exposure and stops casual attempts. It does not replace the #3 fix, which removes the flaw itself.
Root is the outcome; the question was the weakness
“Root via USB” is the end state. The path tells you what happened on the way: a physical step, a client-role flaw, and an execution. Each one has its own lever and its own owner. The interesting part of this CVE is the middle step. It is a kernel bug that does not serve anybody. It parses an answer to a question the kernel asked, from a device the attacker built.
The kernel asked a USB device how long its answer was, and believed it. When the flawed code reads a reply rather than serving a request, the component is a client, however privileged it is. Classify the flaw by its role, not by its privilege or its location.
The Layer-3 record of this path, with sources and step notes, is in the TLCTC repository as attack-paths/usb2shell-cve-2026-98232-2026.json.
Sources
- [1] Linux commit 3d676e458fe0, “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”, A. Carboneri and P. F. Dei (Drivesec S.r.l.), authored 4 September 2026, committed 10 September 2026. Primary source for the mechanism and the proof.
- [2] CVE-2026-98232, CNA Linux, published 6 October 2026, updated 19 October 2026: affected 6.5, fixed in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3; no CVSS or CWE in the record.
- [3] Linux commit 1b22cfb14142, “scsi: core: Allow enabling and disabling command duration limits”, D. Le Moal, 2023 (introduced
scsi_cdl_enable(); Linux 6.5). - [4] BornCity, “CVE-2026-98232: Linux-Lücke führt per USB-Gerät zu Root-Rechten”, 1 December 2026: public demo, vendor ratings, distribution fix status, KEV status. Secondary source.
- [5] TLCTC v2.7 core paper, §4 cluster definitions and §6 rules (R-ROLE, R-SUPPLY); glossary: R-ROLE (Server vs Client Determination), Client-role component, Exploiting Client (#3).
- [6] The Kernel as Client? Why CVE-2025-21333 Is #2 After All (TLCTC blog).
- [7] Glossary: System Risk Event (SRE).
- [8] Glossary: Physical Attack (#8), Bridge cluster, R-SUPPLY.
- [9] TLCTC attack path agent-btz-usb-2008 (Operation Buckshot Yankee).
- [10] Glossary: Foreign Executable Content (FEC), R-EXEC.
- [11] Glossary: Attack Velocity (Δt); TLCTC v2.7 core paper, §7.2 Velocity (Δt).
TLCTC Framework · v2.7 · CC BY 4.0