Linux SCSI bug CVE-2026-98232 gives root through a malicious USB device
Original title: USB2Shell Linux Kernel Vulnerability Allows Root Access Through Malicious USB Devices Without Login
Drivesec’s usb2shell exploit needs only a reachable USB port on unfixed Linux 6.5 or later; no login or click is required.
CVE-2026-98232 is a stack out-of-bounds bug in scsi_cdl_enable() that the kernel hits while scanning a USB storage device claiming ATA Command Duration Limits support. A malicious device can leak up to 64 bytes of kernel stack and clear one chosen stack byte before userspace sees a disk. Drivesec demonstrated root command execution on a stock Debian 6.12 kernel with KASLR; Android 6.6 and later builds they checked leak data but block the write. Fixed stable and mainline releases are listed, and the Linux CNA published the CVE on October 6.
Unconfirmed: The write-up does not say the bug has been used in real attacks.
- Fixed releases named: 6.6.158, 6.12.112, 6.18.54, 7.2.8 and mainline 7.3.
- The upstream fix is commit 3d676e458fe0.
- The demo’s first two attempts missed; the third ran whoami and uname as root.
- Failed attempts did not crash the tested system.
- Drivesec reported the bug privately on September 2 and published the write-up on November 30.
Impact: Local root command execution from a plugged-in USB device
| Product | Affected | Fixed in |
|---|---|---|
| Linux kernel | 6.5 or later without the fix | 6.6.158, 6.12.112, 6.18.54, 7.2.8, 7.3 |
- 1.Update to a fixed kernel or backport commit 3d676e458fe0.
- 2.Where patching is delayed, stop auto-loading usb-storage and uas if mass storage is unnecessary.
- 3.Use USB allow-listing such as USBGuard or authorized_default=0.
- CVEs
- CVE-2026-98232
- Vendors
- Linux
- Products
- Linux kernel
- Organizations
- Drivesec
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-98232 | Linux kernel: scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable() scsi_cdl_enable() uses length fields returned by… | — | <1% | PoC ×4 |
From the original article
3 min read at gbhackers.com
A Linux kernel vulnerability, tracked as CVE-2026-98232. It lets a crafted USB device run commands as root on a vulnerable machine. The vulnerability is a stack out-of-bounds bug in the Linux SCSI core, in the function scsi_cdl_enable().
By Mayura Kathir · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.