Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

USB2Shell: Linux kernel SCSI flaw CVE-2026-98232 lets a malicious USB device run commands as root

Researchers at Drivesec have published USB2Shell, a Linux kernel flaw in the SCSI core that a crafted USB device can exploit during the automatic scan on plug-in. The fix has been upstream since September and no attacks are reported.

USB2Shell: Linux kernel SCSI flaw CVE-2026-98232 lets a malicious USB device run commands as root

Security firm Drivesec has published details of USB2Shell, a Linux kernel vulnerability tracked as CVE-2026-98232 that lets a crafted USB device obtain root command execution on an unpatched machine. The bug sits in the SCSI core and is triggered when the kernel automatically scans a newly plugged-in storage device, so no mounting, login or click is needed.

The fix has been in the upstream kernel since September 2026 and the CVE was published on October 6, but the full write-up appeared on November 30. There are no reports of attacks in the wild, and the flaw is not in CISA’s Known Exploited Vulnerabilities catalog, according to The Hacker News and Rapid7. Physical access to a USB port is required.

What happened

According to the USB2Shell write-up, scsi_cdl_enable() trusts length fields returned by the device in a MODE SENSE response when it locates the ATA feature mode page inside a 64-byte stack buffer. A malicious device can report lengths that make an unsigned subtraction wrap, so a pointer runs past the buffer. Rapid7’s description says the kernel can then leak adjacent stack contents back to the device. Drivesec says the same weakness allows a one-byte write, which its researchers turned into arbitrary kernel memory writes, defeated KASLR and ran a chosen command as root when the device was unplugged.

The write-up gives this timeline: the bug was found on August 26, reported privately to SCSI maintainers on September 2, and fixed in the kernel on September 9. The CVE was published on October 6. Drivesec says it found the flaw independently and wrote the fix, while Google’s Sashiko AI code-review system also reported the bug on the linux-scsi list; the researchers say the exploit chain was not written by AI.

Who is affected

Drivesec lists Linux 6.5 and later as affected until patched, with fixes in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and mainline 7.3. The kernel must support USB mass storage through usb-storage or uas, built in or auto-loaded. Distribution kernels backport fixes without changing version numbers, so check vendor advisories. Rapid7 lists AlmaLinux, Debian, Oracle Linux, Red Hat Enterprise Linux, Ubuntu and VMware Photon OS among vendors with updates, and The Hacker News says Debian’s standard 12 kernel never contained the flawed code.

Android kernels 6.6 and newer are affected only as an information leak, the researchers say, because compiler bounds checks prevent the write step.

Severity and exploitation

No CVSS score has been assigned in the sources reviewed. The proof of concept worked on a stock Debian 6.12.22 kernel with KASLR enabled using a Cynthion USB tool. It is probabilistic, but Drivesec says failed attempts do not crash the machine, so an attacker can retry. A locked screen or a policy against unknown drives does not help once the driver scans the device. The practical concern is highest for equipment with exposed USB ports: kiosks, payment terminals, EV chargers and shared workstations. None has been shown compromised.

What defenders should do now

  1. Install a vendor kernel that includes the fix for CVE-2026-98232, or backport upstream commit 3d676e458fe0, and reboot.
  2. Do not rely on version numbers alone; confirm the fix in your distribution’s security tracker.
  3. On systems that do not need USB storage, prevent usb-storage and uas from loading or building.
  4. Enforce a USB allow-list with USBGuard or set authorized_default=0 so new devices need approval before drivers bind.
  5. Prioritise unattended or public-facing devices with reachable USB ports, and consider physical port blockers.

SCVM analysis

USB2Shell is a reminder that device enumeration happens before any user decision. The kernel talks to a stranger’s hardware the moment it is connected, and parsing code written to trust that hardware becomes an attack surface. The risk is narrow, since an attacker needs hands on a port and a custom USB device, but that is realistic for kiosks, shared lab machines and embedded Linux products that update rarely. The long gap between the September fix and the November disclosure also shows why embedded and appliance vendors, who often lag upstream, deserve a direct question: which kernel are you shipping?

Sources

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.