USB2Shell: Linux Kernel Flaw CVE-2026-98232 Gives Root via USB

Drivesec published a public exploit for CVE-2026-98232, a Linux SCSI core flaw that lets a rogue USB device run commands as root without login or any clicks.
Table of Contents
    Add a header to begin generating the table of contents

    Drivesec has shown that a crafted USB storage device can run a command as root on an unpatched Linux machine without a login, a mounted drive or a user click. The flaw, tracked as CVE-2026-98232 and nicknamed USB2Shell, carries a CVSS score of 8.4. The researchers published full details and a public exploit on Monday. No attacks in the wild are known, and the flaw is not in CISA’s KEV catalog.

    How CVE-2026-98232 Works in the SCSI Core

    The bug is a CWE-787 weakness in the SCSI core function scsi_cdl_enable(), which handles Command Duration Limits. The function trusts device-supplied length fields and copies data into a 64-byte stack buffer. That allows a read of 64 bytes of kernel stack and a one-byte overwrite.

    The flaw fires during automatic device probing, so locked screens, logged-out sessions and automount restrictions do not help.

    Drivesec’s Debian Demonstration With a Cynthion USB Tool

    On a Debian machine running kernel 6.12.22 with KASLR enabled, using a Cynthion USB tool, researchers defeated KASLR, built fake kernel structures and ran a command as root when the device was unplugged. The exploit is probabilistic, but failed attempts do not crash the machine.

    Google’s Sashiko Flagged the Bug, Drivesec Built the Exploit

    The bug was first flagged by Sashiko, Google’s AI code-review system for the Linux kernel. Drivesec says it separately found the bug, wrote the fix and built the exploit, and that the AI did not write the exploit.

    Affected Kernels, Distributions and Android Exposure

    Linux kernel 6.5 and later is affected. Fixes landed in 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. RHEL 9 and 10, Debian 12 and 13, Amazon Linux 2023 and AlmaLinux 9 are fixed through vendor kernels. Debian 12’s standard kernel never contained the flawed code.

    Why Android Phones Do Not Get Root

    Android phone kernels at 6.6 and later leak kernel memory, but compiler checks block the write, so the flaw does not give root there.

    Devices With Reachable USB Ports

    Drivesec points to kiosks, payment terminals, car infotainment, EV chargers and smart-home hubs as exposure of concern. None has been shown compromised.

    Patch Timeline and Mitigations for USB2Shell

    The kernel fix landed in September, the CVE was published in October, and vendor advisories followed, including Red Hat RHSA-2026:102090, 102168 and 102710. The full write-up and exploit arrived on November 30.

    Users should update to a vendor kernel with the fix or backport upstream commit 3d676e458fe0. Mitigations include blocking the usb-storage and uas modules and using USBGuard or authorized_default=0. Drivesec offers a check script, which may miss backports.

    The attack needs physical access to a reachable USB port, and the impact is root on unpatched Linux hosts. Public exploit code now exists, which changes the position for devices left in public or shared spaces, since an attacker needs only a prepared device rather than credentials.

    What Drivesec’s Write-Up Does and Does Not Claim

    Drivesec’s report separates what the researchers demonstrated from what they did not. They demonstrated root on a Debian machine running kernel 6.12.22 with KASLR on, using a Cynthion USB tool. They did not show compromise of any kiosk, payment terminal, car infotainment system, EV charger or smart-home hub, and they list those only as exposure of concern.

    The check script Drivesec offers may miss backports, so a clean result does not prove a vendor kernel lacks the fix. The upstream commit, 3d676e458fe0, is the reference for administrators who build their own kernels.

    The exploit is probabilistic, but failed attempts do not crash the machine, so an attacker with physical access can try repeatedly without a crash drawing attention. Sashiko’s earlier flag on the bug, followed by Drivesec’s independent work, produced the fix months before the public exploit arrived.

    Related Posts