USB2Shell Linux Kernel Flaw Can Enable Pre-Login Privileged Code Execution via Malicious USB

Summary
USB2Shell (CVE-2026-98232) is a Linux kernel flaw in USB storage handling. Malformed device-supplied lengths can trigger out-of-bounds access; a build-specific proof of concept achieved privileged execution. The article details fixes and mitigations.
Key points
- In the kernel SCSI storage subsystem, scsi_cdl_enable() trusts device-supplied length fields when processing Command Duration Limits data in a 64-byte stack buffer.
- Malformed lengths can cause arithmetic underflow and out-of-bounds access, potentially disclosing kernel stack memory and altering a byte beyond the intended buffer.
- The kernel CVE announcement documents a proof of concept that achieved privileged command execution with kernel address randomization and non-executable memory protections enabled; results depend on the build and environment.
- A vulnerable kernel must be reachable by an attacker-controlled storage device. The scan can occur before sign-in or drive mounting, so a locked screen or disabled automount does not prevent processing.
- Upstream fix points include 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Distribution fixes vary by package, kernel flavor and support stream; use the applicable vendor advisory.
- Until updates are available, the article recommends restricting USB device authorization with controls such as USBGuard, considering disabling USB storage drivers where feasible, and limiting physical access to exposed ports.
- After updating, reboot into the corrected kernel and verify the running build. For appliances, check the manufacturer's firmware fix status; device identifiers alone do not authenticate USB hardware.
Article Details
- Vulnerability Types
- Integer underflow
- Out-of-bounds read
- Out-of-bounds write
- Exploitation Status
- unknown
- Exploit Availability
- public_poc
- Patch Status
- available
- Workarounds
- Use USBGuard or Linux USB authorization policies to block newly attached devices unless explicitly approved.
- Where USB storage is unnecessary, assess disabling the usb-storage and uas drivers.
- Restrict physical access to exposed USB ports while updates are pending.
MITRE ATT&CK
T1068 · Exploitation for Privilege EscalationThe documented build-specific proof of concept achieved privileged command execution by exploiting the kernel vulnerability.T1200 · Hardware AdditionsThe described attack path uses an attacker-controlled USB storage device connected to the vulnerable Linux system.
CVE
Vendors
DebianDebian marks its standard Debian 12 linux package as unaffected because the vulnerable code is absent.Red HatRed Hat also identifies the ability to attach emulated devices to a virtual machine as a relevant access path.UbuntuUbuntu lists the standard Ubuntu 24.04 linux source package as fixed in 6.8.0-149.149, while the Ubuntu 22.04 HWE 6.8 stream is fixed in 6.8.0-149.149~22.04.1.
Products
Debian 12Debian marks its standard Debian 12 linux package as unaffected because the vulnerable code is absent.Linux kernelThe vulnerability sits in the Linux kernel’s SCSI storage subsystem, which also handles many USB storage devices.RHEL 9For example, Red Hat’s RHEL 9 advisory RHSA-2026:100662 includes this vulnerability among its fixes.Ubuntu 22.04Ubuntu lists the standard Ubuntu 24.04 linux source package as fixed in 6.8.0-149.149, while the Ubuntu 22.04 HWE 6.8 stream is fixed in 6.8.0-149.149~22.04.1.Ubuntu 24.04 LTSUbuntu lists the standard Ubuntu 24.04 linux source package as fixed in 6.8.0-149.149, while the Ubuntu 22.04 HWE 6.8 stream is fixed in 6.8.0-149.149~22.04.1.
