New USB2shell Attack Lets Hackers Gain Root Access with a Malicious USB
What happened?
A malicious USB device can make an unpatched Linux system run commands as root, the operating system’s highest level of access. The flaw, dubbed usb2shell and tracked as CVE-2026-98232, kicks in when the Linux kernel automatically checks a newly connected USB storage device. Nobody needs to sign in, open a file, or mount a drive. The attacker does, however, need physical access to a USB port. That requirement makes usb2shell a particular concern for Linux-powered kiosks, payment terminals, EV chargers, and industrial control panels with accessible ports.
Key details
- A malicious USB device can trigger root command execution on unpatched Linux systems during automatic kernel scanning.
- The usb2shell flaw activates when the kernel checks a newly connected USB storage device without any user interaction.
- Physical access to a USB port is required, making kiosks, payment terminals, EV chargers, and industrial panels high-risk targets.
- The bug resides in the SCSI storage code introduced with Command Duration Limits support in Linux 6.5.
- During device scan, the kernel fails to validate reported lengths, leaking up to 64 bytes of kernel memory and enabling a one-byte out-of-bounds write.
- On tested Android kernels, compiler bounds checks blocked the out-of-bounds write but the memory leak persisted, and no Android root access was demonstrated.
What is affected?
- Unpatched Linux kernels version 6.5 and later with USB mass storage support via usb-storage or uas drivers and physically accessible ports.
How do I fix or mitigate it?
- First fixed releases: 6.6.158, 6.12.112, 6.18.54, 7.2.8, and mainline 7.3; upstream fix committed September 9.
- Prevent usb-storage and uas drivers from loading on systems that do not need USB storage.
What should defenders look for?
- Upstream fix commit 3d676e458fe0 for verifying the kernel fix.
- Stable backport commits 39491a1ae930, 60b0b8ce803e, 6233d0b3ef46, 99a6e4a9176d for verifying fixes in stable branches.
Summarised by SecOraLens from Cyber Security News. Always read the original source before acting. How SecOraLens verifies advisories.
What to do next
Brief your board. Brief your team.
Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.
