Plug a small programmable USB board into an unpatched Linux machine, and the kernel may run a command of the board’s choosing as root before anyone has typed a password. That is the claim behind USB2Shell, which Italian security firm Drivesec published on 30 November 2026 with a working proof of concept on a stock Debian kernel.
In short: USB2Shell (CVE-2026-98232) is a Linux kernel bug in how the SCSI layer scans new storage devices, present in Linux 6.5 and later, and it is fixed upstream since September 2026. Anyone running Linux on hardware with USB ports that strangers can reach should confirm their vendor kernel includes the fix, and block USB storage where it is not needed.
- What is USB2Shell?
- Background: why a USB stick talks to the SCSI layer
- How does CVE-2026-98232 work?
- Who is affected by USB2Shell?
- How severe is it? The vendors disagree
- How does USB2Shell compare with other recent physical and kernel bugs?
- How do you detect a USB2Shell attempt?
- What should defenders do now?
- The catch: allow-listing is not a full answer
- Who found it: Drivesec or an AI?
- Open questions
- The bottom line
- Sources
What is USB2Shell?
USB2Shell is a stack out-of-bounds read and write in scsi_cdl_enable(), a function in the Linux kernel’s SCSI core. A USB storage device that misreports a few length fields can make the kernel send it up to 64 bytes of kernel stack memory and clear bits in one stack byte at an offset the device chooses.
Drivesec chained those two small primitives into full root command execution. The firm named it after this year’s run of “2shell” and “4shell” bugs, such as PHP2Shell and Java4Shell, and calls it the physical version: a crafted device instead of a crafted request.
The Linux kernel CVE record was published by the kernel’s own CVE Numbering Authority on 6 October 2026. Drivesec held its full write-up until 30 November, almost three months after the fix landed.
Background: why a USB stick talks to the SCSI layer
What is Command Duration Limits?
Command Duration Limits (CDL) is a disk feature that lets the host attach time limits to read and write commands, so a slow command can be aborted instead of stalling everything behind it. The kernel patch series that added it describes seven duration limit descriptors for reads and seven for writes. Support arrived in Linux 6.5.
Why USB storage reaches this code
Linux treats USB mass storage as SCSI. The usb-storage and uas (USB Attached SCSI) drivers wrap the device so the SCSI core can probe it like any disk. When a new device says it is an ATA disk with CDL support, the scan calls scsi_cdl_enable() to read and write back a configuration page.
A MODE SENSE command asks a disk for one of its settings pages, and MODE SELECT writes a page back. The bug lives in the code that does that round trip.
Why this matters now
A run of recent kernel bugs shows how much attack surface sits in code most administrators never think about. The site recently covered NFS2ROOT, a 12-year-old nfsd heap overflow. USB2Shell is younger, but it is reached without any network service at all.
How does CVE-2026-98232 work?
The kernel advisory and Drivesec’s write-up agree on the mechanism. Here it is at a conceptual level, without exploit detail.
Step 1: the kernel trusts the device’s lengths
scsi_cdl_enable() reads the mode page into a 64-byte buffer on the kernel stack. It then computes where the page data starts and how long it is from three lengths the device itself returns: the total length, the header length and the block descriptor length.
A device can report a total shorter than the header plus descriptors. The unsigned subtraction then wraps around to a huge number, which the code caps at 64, and the computed start pointer can land past the end of the buffer.
Step 2: a leak and a one-byte write
During the automatic scan the function is called with “enable” set to false, so it clears the low two bits of one byte at the computed pointer. That pointer is outside the buffer, at an offset the device picks. Then scsi_mode_select() copies up to 64 bytes from outside the buffer into the MODE SELECT payload and sends them to the device.
So the attacker’s device learns the contents of kernel stack memory and gets one small, targeted change to it.
Step 3: from one byte to root
Drivesec says the leak let it defeat KASLR (kernel address space layout randomization, which hides where kernel code sits in memory). The chain then built fake kernel structures to turn the one-byte change into a controlled write. When the device is unplugged, the kernel runs a command the device supplied, as root.
What did the proof of concept show?
Drivesec ran the attack from a Cynthion, an open programmable USB tool, against a stock Debian 6.12.22+bpo-amd64 kernel with KASLR enabled. In its demonstration the first two attempts missed and the third ran whoami and uname as root.
The exploit is probabilistic, and Drivesec says failed attempts do not crash the target, so an attacker can retry. No success rate is published. Separately, the kernel CVE text describes a QEMU and Raw Gadget proof on Linux 7.3-rc1 that created a root-owned marker file with KASLR and NX enabled.
Is it disabled if CDL is off?
No. CDL is disabled by default in the kernel, but the vulnerable path is the scan that runs when CDL is reported as supported, with “enable” false. The bug does not depend on anyone turning the feature on.
Who is affected by USB2Shell?
Drivesec lists three conditions that must all be true:
- The system runs Linux 6.5 or later without the fix.
- USB mass storage support (
usb-storageoruas) is built in or loads automatically. - Someone can plug a device into one of its USB ports.
Fixed versions
| Branch | First fixed upstream release |
|---|---|
| 6.6.y | 6.6.158 |
| 6.12.y | 6.12.112 |
| 6.18.y | 6.18.54 |
| 7.2.y | 7.2.8 |
| mainline | 7.3 |
The upstream fix is commit 3d676e458fe0, “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”, committed on 9 September 2026. Drivesec wrote and submitted the patch itself.
Distribution status
Upstream numbers do not map cleanly onto distribution kernels, which backport features and fixes. Three examples from vendor trackers:
- Debian 12 (bookworm): the default
linux6.1 package is marked not affected because the vulnerable code is not present. The optionallinux-6.12package was affected and is fixed in 6.12.113-1~deb12u1 (DLA-4850-1). Note that Drivesec’s test target, a+bpokernel, is a Debian backports build. - Debian 13 (trixie): fixed in 6.12.113-1 (DSA-6568-1).
- Red Hat and derivatives: Red Hat ships a fix even though RHEL 9 kernels are numbered 5.14, because CDL was backported. SUSE’s page lists the fixed SUSE Liberty Linux 9 kernel as 5.14.0-741.24.1.el9_9.
Android
Drivesec says Android kernels on 6.6 and later are affected but only leak memory. The builds it checked, Android GKI and the Samsung Galaxy A16 shipping kernel, use compiler bounds checks that keep the write inside the buffer.
Where exposure is real
The practical risk is any Linux box whose USB port a stranger can reach. Drivesec names car infotainment and telematics units, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment, industrial HMIs and smart-home hubs. These are examples of where an open port matters, not confirmed vulnerable products.
Red Hat adds a less obvious case: anyone who can attach virtualized devices to a guest. On a virtual machine, an emulated USB or SCSI device can play the role of the malicious stick.
How severe is it? The vendors disagree
Red Hat rates CVE-2026-98232 at 8.4, Important, with a local attack vector and high impact on confidentiality, integrity and availability. SUSE rates it 5.7, Moderate, with a physical attack vector and low integrity and availability impact.
Both readings are defensible. If your fleet is servers in locked racks, SUSE’s view fits. If it is kiosks, chargers or VMs where tenants control attached devices, Red Hat’s is closer. SecurityOnline listed an EPSS score of 0.2 percent, which reflects the physical access requirement and the lack of known attacks.
How does USB2Shell compare with other recent physical and kernel bugs?
| USB2Shell | NFS2ROOT | FastUnlock | WPSplinter | |
|---|---|---|---|---|
| Target | Linux 6.5+ kernel | Linux nfsd | Windows 11 lock screen | Broadcom router WPS daemon |
| Access needed | Physical USB port | Network, TCP 2049 | Physical, keyboard | Wi-Fi range |
| Result | Root command | Root (lab) | Limited non-admin account | Code execution on router |
| CVE | CVE-2026-98232 | CVE-2026-99362 | None at disclosure | None (Broadcom declined) |
| Known in-the-wild use | None reported | None reported | None reported | None reported |
FastUnlock also needed someone at the keyboard, but it only gave a limited account. USB2Shell goes straight to root. WPSplinter is the closest in spirit: an attacker nearby, no credentials, and embedded devices that rarely get updates.
How do you detect a USB2Shell attempt?
No vendor has published indicators of compromise, and Drivesec has not described what its device looks like in logs. Detection therefore means watching the attack surface. The relevant MITRE ATT&CK technique is T1200, Hardware Additions.
Log sources to watch
- Kernel log (
journalctl -kordmesg): every new USB device, driver binding tousb-storageoruas, and new SCSI disks are logged at plug-in. On kiosks and embedded units that should never see storage, any such entry is worth an alert. - udev events: forward device add and remove events to your log pipeline so a brief plug-in that leaves no mounted disk is still recorded.
- USBGuard audit log: if USBGuard runs, it records every device it allows or blocks with its attributes.
Behaviours worth flagging
- A USB device that identifies as an ATA disk with CDL support. CDL was designed for large hard drives, so it is unusual on a thumb drive.
- Several rapid connect and disconnect cycles of the same device, which fits a probabilistic exploit that retries.
- A root-owned process or new file created right after a USB disconnect, with no interactive session.
Checking exposure
Drivesec publishes a checker script, usb2shell-check.sh, and asks users to read it before running it. The firm and The Hacker News both caution that it can miss fixes a vendor has backported, so treat its result as a hint. Your vendor’s advisory for CVE-2026-98232 is the authority.
What should defenders do now?
- Install a fixed kernel and reboot. Use your distribution’s update, or backport commit
3d676e458fe0for custom and embedded kernels. Patching is the only complete fix. - Prioritise reachable ports. Kiosks, payment terminals, chargers, vehicle units, shop-floor HMIs and lab machines first; locked data-centre servers later.
- Remove USB storage where it is not needed. Blacklist or do not build
usb-storageanduason devices that never read USB drives. This removes the attack surface outright. - Deauthorize new USB devices by default. USBGuard, or writing 0 to
authorized_defaultfor each USB host controller, stops the kernel configuring a device until it is approved. Writing 2 authorizes only devices on internal ports. - Check virtualization hosts. Review who can attach USB or SCSI devices to guests, per Red Hat’s note.
- Ask your embedded suppliers. For products running vendor kernels, request a statement on CVE-2026-98232 and the fixed firmware version.
The catch: allow-listing is not a full answer
The kernel’s own documentation on USB authorization warns that anyone with a device gadget kit can fake descriptors and device information. A Cynthion is exactly that kind of kit.
So an allow-list that trusts a vendor and product ID can be fooled by a device that copies an approved one. Default-deny still helps, because a device must match a rule before its driver loads. It is a speed bump against a determined attacker, not a replacement for the patch.
Who found it: Drivesec or an AI?
Both, according to the sources. Drivesec’s credits say Sashiko AI Review first reported the bug on the linux-scsi mailing list, while its own team found it independently, wrote the fix and built the exploit chain. The kernel CVE text also says the issue was independently found by Drivesec.
The Hacker News reports that Sashiko is an AI code-review system Google built for the kernel and gave to the Linux Foundation. It also reports that Google credits Sashiko in 528 kernel CVE fixes this year, while Google itself cautions that it is too early to make strong claims about that credit. The AI did not write the exploit.
Open questions
- Reliability: Drivesec gives no success rate, only that the exploit is probabilistic and does not crash on failure.
- Real products: no kiosk, charger or vehicle unit has been shown vulnerable. Which embedded vendors ship 6.5+ kernels with USB storage enabled is unknown.
- Severity: Red Hat and SUSE score the same bug three points apart, and NVD analysis was still pending in SecurityOnline’s summary.
- Exploit release: Drivesec published the mechanism and a checker. Whether full device firmware will become public is not stated.
The bottom line
USB2Shell turns a few seconds at a USB port into root on unpatched Linux 6.5 and later, with no login and no mount. The fix has existed since September, so the risk sits mainly in kiosks, chargers, vehicles and other embedded systems that update slowly. Patch them, strip USB storage where it is not needed, and treat USB allow-lists as a delay rather than a defence.
Sources
- Drivesec: usb2shell, Root on Linux from a USB Plug-In (CVE-2026-98232)
- Debian security tracker: CVE-2026-98232
- Red Hat: CVE-2026-98232
- SUSE: CVE-2026-98232
- The Hacker News: USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login
- SecurityOnline: CVE-2026-98232 Linux Kernel usb2shell PoC
- Linux kernel documentation: Authorizing (or not) your USB devices
- MITRE ATT&CK: T1200 Hardware Additions
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.