Elith日本語版
Menu

Linux USB Vulnerability and Countermeasures: usb2shell, Where Plugging In a Crafted USB Device Can Exploit a Kernel Flaw (CVE-2026-98232)

CVE-2026-98232 (usb2shell) lets a crafted USB storage device exploit a Linux kernel flaw just by being plugged in. From Drivesec's write-up and the CVE record, we cover what happens, affected systems and fixes, proof-of-concept conditions, exposed devices, an earlier AI code-review report, and four checks.

Published
{minutes} min read
5 min read
Abstract 3D illustration on a background shading from blue to pale pink of a translucent USB stick about to be plugged into a large translucent box with a port, with thin orange and light-blue lines running through

A vulnerability has been disclosed that lets a crafted USB storage device exploit a flaw in the Linux kernel simply by being plugged in. On November 30, 2026, Drivesec, an Italian company specializing in the security of connected products and IoT/OT systems, explained the issue under the name "usb2shell" (Drivesec's write-up). It is tracked as CVE-2026-98232. This article covers what happens, which environments are affected and what can be done now. Drivesec's write-up and the CVE record do not mention any actual exploitation.

What happens: it is triggered by the automatic scan on plug-in

When a USB storage device is plugged in, Linux automatically examines it (scans it). According to the CVE description, during this scan a function called scsi_cdl_enable() uses length values returned by the device without enough checking, and accesses memory outside a 64-byte buffer (CVE record). As a result, the device can receive up to 64 bytes of kernel stack contents and can clear the low two bits of one stack byte.

No mount, click or login is needed. The crafted device reaches the flaw by identifying itself as an ATA device that supports a feature called CDL (Command Duration Limits). The attack requires physically plugging in a device; it is not an attack over the network.

Diagram of the flow from plugging in a USB device to the problem, where countermeasures act, and the first fixed versions, headed: A crafted USB reaches the flaw on plug-in; update and allow-list USB. The subtitle says it is CVE-2026-98232 (usb2shell) in Linux, and that unfixed kernels 6.5 and later (with CDL) with usb-storage or uas enabled may be affected. On the left is the flow: 1, a crafted USB storage device is plugged in; 2, the automatic scan sees an ATA device with CDL (no mount, click or login needed); 3, scsi_cdl_enable() lacks proper length checks; 4, up to 64 bytes leak and one byte is altered (not an arbitrary write); 5, root execution, probabilistic, in one setup (Drivesec's proof on a stock Debian kernel and real hardware). On the right are countermeasures and where they act: USB allow-listing (USBGuard, authorized_default=0) means unapproved devices never reach step 2; disabling unneeded usb-storage or uas is a stopgap before updating that stops step 2; updating to a fixed kernel or backporting the fix fixes the missing check in step 3. It notes that not mounting alone does not prevent it. At the bottom are the first fixed versions per branch: 6.6.158 for 6.6.y, 6.12.112 for 6.12.y, 6.18.54 for 6.18.y, 7.2.8 for 7.2.y and 7.3 for mainline, with a note that distributions may backport fixes without changing the version and that the CVE record has no CVSS score

Figure 1: The flow from plugging in the USB device to the problem, where each countermeasure works, and the first fixed versions. Sources: Drivesec's write-up, the CVE record from the Linux kernel CVE Numbering Authority

What is affected, and fixed versions

According to Drivesec, a system is exposed when all of the following are true:

  • It runs Linux 6.5 or later without the fix.
  • usb-storage or uas (the USB storage drivers) is built in or loaded automatically.
  • Someone can plug a device into one of its USB ports.

The first releases with the fix are:

Branch First fixed 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

Distributions and device vendors sometimes backport fixes without changing the version number. Drivesec has published a checker script and asks users whose kernel is flagged to check their vendor's advisory. As of December 5, 2026, neither the CVE record nor NVD lists a CVSS score (NVD).

Conditions of the proof of concept, and devices that may be affected

Drivesec reports that, on a stock Debian kernel 6.12.22+bpo-amd64 and over a real USB port, it got the kernel to run a command chosen by the device as root. KASLR (a defense that randomizes the kernel's memory layout) was enabled, and the attack used a device called Cynthion. The exploit is probabilistic, however: in the published video, the first two attempts fail and the third succeeds. Failed attempts did not crash the system and could simply be retried. It will not necessarily succeed the same way on every Linux device.

The CVE record also describes a separate proof on upstream Linux 7.3-rc1 running in QEMU with one virtual CPU. That is a different setting from Drivesec's proof on real hardware over USB with Debian.

As examples of Linux devices with USB ports that strangers can reach, Drivesec lists 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 devices that may be exposed, not a list of incidents. On Android, Drivesec says the builds it checked (Android GKI and the Samsung Galaxy A16 shipping kernel) use compiler bounds checks that keep the write inside the buffer, so the bug is only a leak there. Only some builds were checked, however.

An AI code review reported it first

According to Drivesec, the first report of this issue on the linux-scsi mailing list came from Sashiko AI Review, an AI-based code review. Drivesec says its research team found the bug independently, wrote the fix and built the exploit chain. The fix patch also credits Sashiko AI Review as the reporter (the fix patch).

According to Drivesec's timeline, it found the bug on August 26, achieved root command execution on physical hardware on August 28, reported it privately to the maintainers on September 2, and sent the patch on September 4. The fix was committed on September 9, and the CVE was published on October 6.

What Japanese companies should check

Companies with devices or terminals that embed Linux should check the following:

  1. Whether they have confirmed with vendors that their kernels are fixed versions or include the backported fix.
  2. Whether they allow only approved devices, using USBGuard or the authorized_default=0 setting.
  3. Whether they have removed unneeded usb-storage and uas from the build or from automatic loading.
  4. Whether they know which devices sit in places such as stores and factories where third parties can plug in USB devices.

Not mounting devices does not prevent this problem. Assume it happens at the moment of plug-in, and combine device updates with restrictions on what can connect.

Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read developments in vulnerabilities and their countermeasures from primary sources and report on them.

Sources

  1. Drivesec, usb2shell: Root on Linux from a USB Plug-In (CVE-2026-98232) (November 30, 2026)
  2. CVE record for CVE-2026-98232 (Linux kernel CNA)
  3. NVD, NVD - CVE-2026-98232
  4. Fix patch, scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable() (linux-kernel, September 4, 2026)