usb2shell (CVE-2026-98232): Which Linux Kernel Products Are Exposed?

Linux kernelCVEUSBProduct security

On 30 November 2026 the security firm Drivesec published usb2shell, their name for CVE-2026-98232. According to Drivesec, a crafted USB device plugged into a Linux machine can make the kernel run a command of its choice as root. Nobody has to log in, mount a disk or click anything: the bug fires while the kernel automatically scans the new device. Drivesec showed it on an official Debian 12 backports kernel (6.12.22) over a real USB port, with KASLR enabled.

The first reaction in product teams that ship Linux boxes with USB ports is to assume the worst. Here that is closer to right than usual, but the window is narrower than the CVE record suggests. The vulnerable code arrived in Linux 6.5, but a plugged-in device can only reach it on kernels from June 2024 onwards (6.6.35, 6.9.6, 6.10 and later), and every affected long-term kernel has had the fix since early October 2026. A product is exposed only if its kernel falls in that window, it has USB mass-storage support, and an attacker can reach a USB port. A product that stayed on 6.1, 5.15 or 5.10 never had the bug.

Developing story. Last checked: 1 December 2026, against the current kernel releases (6.1.193, 6.6.163, 6.12.120, 6.18.66, 7.3.7) and the distribution trackers of the same day.

The facts

CVE-2026-98232 “usb2shell”
Componentscsi_cdl_enable() in drivers/scsi/scsi.c, the SCSI core’s support for Command Duration Limits (CDL)
Bug classStack out-of-bounds access: an unsigned length underflow lets the device read up to 64 bytes of kernel stack and modify one stack byte at an offset it picks
Who triggers itThe storage device itself, during the kernel’s automatic scan: a USB storage device that claims to be an ATA device with CDL support
GateUSB mass storage support (CONFIG_USB_STORAGE, and CONFIG_USB_UAS on top of it), built in or loaded automatically, plus a USB port the attacker can reach
Code present since1b22cfb14142 “scsi: core: Allow enabling and disabling command duration limits”, first released in 6.5 (August 2023). At first only root could reach it, through a sysfs switch
USB-reachable since52912ca87e2b “scsi: core: Disable CDL by default” (June 2024), which made the automatic scan call the function: 6.6.35, 6.9.6 and 6.10 (our analysis)
Reachable by a USB device6.6.35 to 6.6.157, 6.9.6 to 6.9.12, 6.10 to 6.11, 6.12 before 6.12.112, 6.13–6.17, 6.18 before 6.18.54, 7.0, 7.1, 7.2 before 7.2.8
Not affectedThe 5.10, 5.15 and 6.1 branches (no CDL code). Code present but not reachable by a device: 6.5, 6.6 before 6.6.35, 6.7, 6.8, 6.9 before 6.9.6. Vendor kernels can differ from their version number: Red Hat had to fix RHEL 9’s 5.14-based kernel
Fix3d676e458fe0 “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”, in 7.3; tagged Cc: stable
Stable statusLong-term: fixed in 6.6.158, 6.12.112 and 6.18.54. Stable 7.2 (now end of life): fixed in 7.2.8. All released between 25 September and 3 October 2026
ScoresNo CVSS from the kernel CNA; NVD status “Received”. Red Hat 8.4 AV:L “Important”; SUSE and Amazon 5.7 AV:P
ExploitRoot shown by the discloser in a write-up and demo; exploit code not published. Not in CISA KEV

How the bug works

Command Duration Limits let a host tell a disk how long a command may take. Linux 6.5 added support for it. On current kernels, when the kernel scans a new SCSI device that says it is an ATA device with CDL support, it calls scsi_cdl_enable() to put the device’s CDL setting into a known state. That function asks the device for a mode page with MODE SENSE, reads the reply into a 64-byte buffer on the kernel stack, changes the CDL bit, and writes the page back with MODE SELECT.

The reply contains three lengths: the total length, the length of the header, and the length of the block descriptors. The old code trusted all three:

-		len = min_t(size_t, sizeof(buf),
-			    data.length - data.header_length -
-			    data.block_descriptor_length);
-		buf_data = buf + data.header_length +
-			data.block_descriptor_length;
+		avail = min_t(size_t, data.length, sizeof(buf));
+		if (data.header_length > avail)
+			return -EINVAL;
 ...
+		if (avail < 5)
+			return -EINVAL;

A device that reports a total length shorter than its header and descriptors makes the subtraction wrap around, so len becomes the full 64 bytes, and buf_data points past the buffer. The kernel then clears two bits of a stack byte the device chose, and sends up to 64 bytes from beyond the buffer back to the device in the MODE SELECT payload. The device gets a look at kernel stack memory and a small, targeted write. Both happen during the automatic scan, before userspace sees a disk.

The gate: USB mass storage, and a port someone can reach

There is no Kconfig option for CDL: every kernel with the SCSI core builds scsi_cdl_enable(). What decides reachability is whether an untrusted device can get its own MODE SENSE reply to the SCSI core. On a typical product that means the USB mass-storage drivers:

# Is USB mass storage built in (=y) or a module (=m)?
grep -E '^CONFIG_USB_(STORAGE|UAS)=' .config

# On a running system: loaded now, or loadable on plug-in?
lsmod | grep -E '^(usb_storage|uas)'
modinfo usb-storage uas 2>/dev/null | grep -E '^(filename|name)'

Modules matter as much as built-in drivers: when a device is plugged in, udev loads usb-storage or uas on demand. Two rarer drivers also turn attacker-supplied hardware into a SCSI device and deserve the same check if you build them: the Microtek USB scanner driver (CONFIG_USB_MICROTEK) and FireWire SBP-2 (CONFIG_FIREWIRE_SBP2). The second half of the gate is physical. Drivesec lists the kind of products where strangers can reach a port: car infotainment and telematics units, EV chargers, point-of-sale terminals, kiosks, industrial HMIs and smart-home hubs.

Present ≠ reachable. A kernel with the SCSI core has the vulnerable function, but a version number alone does not tell you whether an attacker can reach it. That depends on whether your kernel runs the scan-time CDL check (6.6.35, 6.9.6, 6.10 and later), whether USB mass storage is built or loadable, and whether anyone you do not trust can plug a device into the box. If USB devices must be authorised first (USBGuard, or authorized_default=0 on the USB host controllers), the kernel does not bind a driver to the device, so the scan never runs.

Who has to be the attacker

Unsolicited network traffic cannot reach this bug, and a local user without root has no simple way to fake a USB storage device. The attacker has to be the storage device, or whoever controls it:

Someone at a USB portA storage provider you connect to
Who that isAnyone with a moment at a reachable port and a crafted USB deviceThe host of a virtual machine, or a malicious storage target the system logs into (for example iSCSI)
What they need from youA reachable port, USB mass storage support, a kernel in the reachable window without the fixA guest or initiator kernel in the reachable window without the fix
Realistic outcomeRoot code execution, demonstrated by the discloser. Per Drivesec the exploit is probabilistic, but a miss does not crash the targetRed Hat names the virtual-device route. Normally the storage provider is already trusted infrastructure; this matters where it is not

The scores reflect this split differently. SUSE and Amazon score the bug as physical (AV:P, 5.7). Red Hat scores it as local (AV:L, 8.4) and explains that exploitation needs physical access or the ability to attach virtual devices to a guest. A news headline with “8.4” is quoting Red Hat.

How real is the root claim?

Credible, and backed by more than a description. The fix commit, co-written by the Drivesec researchers, describes a first proof: a build-specific QEMU set-up with one virtual CPU and QEMU-only tuning, in which the emulated USB device made the kernel create a root-owned file during automatic enumeration, with KASLR and NX enabled. Drivesec’s write-up goes further: a Cynthion USB device attacks the Debian 12 backports kernel on a real PC. According to Drivesec, the 64-byte leak breaks KASLR and the one-byte overwrite is turned into a controlled write; when the device is unplugged, the kernel runs a device-supplied command as root. Drivesec calls the exploit probabilistic and states that failed attempts do not crash the target, so an attacker can retry.

Two limits are worth knowing. On Android, Drivesec reports the bug as a leak only: the Android GKI and Samsung Galaxy A16 kernels they checked have compiler bounds checks that keep the write inside the buffer. And the exploit code has not been released; what is public is the write-up, a demo and a checker script.

Our reading: for kernels in the reachable window, treat it as a working physical root exploit. As of 1 December 2026, our exploit database, which tracks public proof-of-concept repositories and the kernelCTF submissions, has no exploit code for CVE-2026-98232. The claim rests on Drivesec’s write-up and demo, and nothing in the code contradicts it. For a product with a USB port that strangers can reach, plan as if the attack works.

The timeline NVD won’t show yet

DateEvent
27 Aug 2023Linux 6.5 released with CDL support (1b22cfb14142). The flawed function is only called when root writes the cdl_enable sysfs switch
21 Jun 202452912ca87e2b, a fix for SAS-attached ATA disks, makes the automatic scan call it too; released in 6.6.35 and 6.9.6, and in 6.10 on 14 July. From here a plugged-in device can trigger the bug
17 Jul 2026An automated AI patch review flags the problem on the linux-scsi mailing list
26–28 Aug 2026Drivesec finds the bug independently and gets root on physical hardware
2–4 Sep 2026Private report to the SCSI maintainers; Drivesec sends the patch to linux-scsi
9 Sep 2026Fix 3d676e458fe0 committed to the SCSI tree
18–20 Sep 2026Merged into mainline; released in 7.3-rc4
25 Sep 2026Fixed in 6.18.54 and 7.2.8
3 Oct 2026Fixed in 6.6.158 and 6.12.112
6 Oct 2026CVE-2026-98232 published by the kernel CNA, without a CVSS score
18 Oct 2026Linux 7.3 released with the fix
20–24 Nov 2026Red Hat ships fixed kernels for RHEL 9 and 10
30 Nov 2026Drivesec publishes usb2shell
1 Dec 2026NVD status still “Received”: no NVD score, no CPE range

Which kernels really have it

The CVE record marks everything from 6.5 as affected, and for the code that is right: we checked the vulnerable lines in the source of every branch, and they match the record’s fixed versions. For the USB attack the window is shorter. Until June 2024, scsi_cdl_enable() was only called when root wrote the cdl_enable switch in sysfs; the automatic device scan did not call it. A 2024 fix for SAS-attached disks added that call, and was backported as 6.6.35 and 6.9.6. So 6.5, 6.7, 6.8, 6.6 before .35 and 6.9 before .6 carry the code, but a plugged-in device cannot trigger it. This boundary is our own reading of the source, not a test on hardware; the CVE record and Drivesec’s checker both use 6.5. Two more things the range does not show: the end-of-life branches in the window (6.10, 6.11, 6.13–6.17, 7.0, 7.1) ended without the fix, and vendor kernels do not follow their version number. RHEL 9’s 5.14-based kernel needed the fix, while a vendor 6.6 kernel may have it without being 6.6.158. Check the source: if drivers/scsi/scsi.c contains data.length - data.header_length - and scsi_cdl_check() calls scsi_cdl_enable(), a device can reach the bug.

Was the risk visible at merge?

Yes. The commit message describes the stack disclosure and the root proof in plain words and carries Cc: stable. The stable maintainers picked it up within weeks: every affected long-term branch had the fix before the CVE was even published. The gap is not upstream. It is in products on a 6.6, 6.12 or 6.18 point release between mid-2024 and the fix, and in products on a branch that reached end of life without it. Products on 6.1 or older, and on 6.6 releases from before June 2024, are not part of it. For a product that cannot move to a fixed release, the branch’s backport commit (linked below) is the starting point; it applies to recent point releases, older ones need a small manual rebase.

What the distributions say

Status of their trackers on 1 December 2026:

DistributionStatusTheir rating
Debian12 “bookworm” (6.1) not affected; its 6.12 backport kernel and 13 “trixie” fixed in 6.12.113—
Ubuntu22.04 (5.15) not affected; 24.04 (6.8) and 26.04 (7.0) fixed, as are the 6.8 and 7.0 HWE kernels. Some NVIDIA kernels still in progressPriority medium
Red HatRHEL 8 not affected; RHEL 9 and 10 fixed (20–24 Nov). OpenShift CoreOS still listed as affected8.4 AV:L, “Important”
SUSESLES 12, 15 and 16 listed as not affected; Tumbleweed fixed5.7 AV:P, “moderate”
Amazon LinuxAmazon Linux 2 and the default Amazon Linux 2023 kernel (6.1) not affected; the 2023 6.12 and 6.18 kernels fixed5.7 AV:P, medium

For servers that follow their distribution’s updates, this is already patched. The exposure sits in embedded and appliance kernels from mid-2024 onwards (6.6.35+, 6.10+) that have not been updated since September.

What your tools will show

NVD has not analysed the CVE, so there is no NVD score and no CPE version range. Scanners that rely on NVD alone will show it unscored or not match it to your kernel at all. Distribution scanners report the distribution’s status, which says nothing about a custom product kernel.

30-second checklist

  1. Does your kernel have the vulnerable code? Upstream before 6.5, or a 5.10, 5.15 or 6.1 kernel without a vendor CDL backport: not_affected, justification code_not_present. At or above 6.6.158, 6.12.112, 6.18.54, 7.2.8, or 7.3 and later: resolved. Vendor kernel: grep the source as shown above. Otherwise continue.
  2. Does the scan reach it? 6.5, 6.7, 6.8, 6.6 before 6.6.35 and 6.9 before 6.9.6 have the code but only root can call it: for the device attack, not_affected, justification code_not_reachable. From 6.6.35, 6.9.6 and 6.10, continue.
  3. Is USB mass storage in your build? If CONFIG_USB_STORAGE is not set (CONFIG_USB_UAS depends on it), and neither CONFIG_USB_MICROTEK nor CONFIG_FIREWIRE_SBP2 is set: not_affected, justification requires_configuration. If it is =y or =m, continue.
  4. Can anyone you do not trust reach a USB port? If every port is inside a sealed enclosure, on the PCB only, or behind a locked cabinet that your threat model accepts: not_affected, justification protected_at_perimeter. If USB devices must be authorised before a driver binds (USBGuard, authorized_default=0): protected_by_mitigating_control. Otherwise the product is exploitable: update the kernel or carry the fix, and until then stop usb-storage and uas from loading where mass storage is not needed.

A physical bug needs a product answer

For a server in a data centre, usb2shell is a distribution update. For a charger in a car park or a terminal on a counter, it is a question about the box: its kernel, its build and its ports. Upload your .config to KernelScan and every kernel CVE is checked against your exact kernel version and the long-term backports, so a 6.6.158 build is marked fixed and a 6.1 build not affected. On paid plans, the security factors you declare for a product, such as whether USB ports are exposed or sealed inside the enclosure, feed into the assessment of each CVE, and the result exports as CycloneDX VEX into Dependency-Track.

References: usb2shell write-up (Drivesec) · CVE record · NVD · fix 3d676e458fe0 and its stable backports 39491a1ae930 (6.6), 60b0b8ce803e (6.12), 6233d0b3ef46 (6.18), 99a6e4a9176d (7.2) · code introduced by 1b22cfb14142, made reachable during the device scan by 52912ca87e2b · distribution trackers as linked in the table above. The per-branch affected and fixed releases and the scan-reachability boundary (checked in the source of each release tag, not tested on hardware), the threat-model split and the exploitability reading are our own analysis as of 1 December 2026; exploit details are as reported by Drivesec.