CVE-2026-98232: USB2Shell
USB2Shell is a stack out-of-bounds access vulnerability in the Linux kernel SCSI core function scsi_cdl_enable(), introduced with Command Duration Limits (CDL) support in Linux 6.5. The function uses device-controlled MODE SENSE lengths to locate an ATA feature mode page in a 64-byte stack buffer without adequately validating the total length, mode header, or block descriptors. A total length smaller than the header and descriptors can cause unsigned subtraction to wrap and a separately calculated page pointer to reference memory beyond the buffer. During automatic scanning, when enable is false, the CDL read-modify-write operation can clear the low two bits of a target-selected out-of-bounds stack byte. Subsequent MODE SELECT processing can disclose up to 64 bytes of out-of-bounds kernel stack contents to the device. A malicious USB storage device identifying as ATA and advertising CDL support can trigger the flaw during enumeration, before filesystem mounting. Exploitation can potentially lead to root command execution, depending on the kernel build and runtime configuration.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The direct consequences are kernel stack information disclosure and a constrained out-of-bounds stack modification. Disclosed memory can support bypassing KASLR, while the modification can be developed into more powerful memory-corruption primitives on suitable configurations. Researchers demonstrated root command execution on a Debian test system and in a separate build-specific QEMU/Raw Gadget environment with KASLR and NX enabled; these demonstrations do not establish reliable exploitation across all affected builds. Successful root compromise could expose confidential data, permit unauthorized system modification or persistence, and disrupt services. Tested Android configurations remained vulnerable to information disclosure, but compiler bounds checks blocked the write required for the demonstrated takeover.
Mitigation
If you can’t patch tonight, do this now.
Prevent unauthorized USB storage devices from reaching driver probing. Enforce a default-deny USB authorization policy, such as a properly configured USBGuard allowlist, before untrusted devices bind to storage drivers. Where USB storage is unnecessary, disable or prevent loading of both usb-storage and uas; account for storage support compiled directly into the kernel. Restrict physical access and disable or physically block unused USB ports. Disabling desktop automounting, locking the screen, or prohibiting filesystem mounts does not prevent exploitation because the vulnerable processing occurs during kernel device enumeration.
Remediation
Patch, then assume compromise.
Install the applicable distribution or device-vendor kernel update and reboot into the patched kernel. Fixed upstream releases include Linux 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3. The fix caps the available response length to the buffer size, validates and consumes mode-header and block-descriptor lengths before accessing the mode page, and requires at least five remaining bytes to access the CDL field. For maintained custom kernels, backport the equivalent validation fix. Verify vendor patch status rather than relying solely on upstream version numbers, because distributions can backport both vulnerable functionality and security fixes. Confirm the running kernel or embedded firmware actually includes the correction.
Exploits
No validated public exploits yet. Hidden: 5 rejected by Mallory's analysis as not a working exploit.
References
Frequently asked questions
- Is CVE-2026-98232 exploited in the wild?
- As of Dec 3, 2026, Mallory has no reports of CVE-2026-98232 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-98232?
- As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-98232.
- Is there a patch for CVE-2026-98232?
- Install the applicable distribution or device-vendor kernel update and reboot into the patched kernel. Fixed upstream releases include Linux 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3.
- How severe is CVE-2026-98232?
- CVE-2026-98232 has an EPSS score of 0.48% (43rd percentile) as of Dec 3, 2026.
Recent activity
108 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.