Security notice: Root access via USB device on Linux (CVE-2026-98232 / usb2shell)
What is this about?
A crafted USB device can execute commands with root privileges on an unpatched Linux system. Plugging the device in is enough: no login, no mounting of the drive and no user interaction is required. The flaw is in the kernel's SCSI code, which automatically detects USB storage devices when they are connected. An attack requires physical access to a USB port of the system.
When is a system affected?
Only systems that meet all three conditions are affected:
• Linux kernel 6.5 or later (the faulty code was introduced in 6.5)
• the fix has not yet been installed
• the USB storage drivers (usb-storage / uas) are active
For common distributions, this means:
• Debian 11 "Bullseye" (kernel 5.10) and Debian 12 "Bookworm" with the standard kernel (6.1): not affected
• Debian 12 with a backports kernel 6.5 or later, and Debian 13 "Trixie" (kernel 6.12): affected until the kernel update is installed
• Ubuntu 22.04 with the standard kernel (5.15): not affected; Ubuntu 22.04 with the HWE kernel, and Ubuntu 24.04 (kernel 6.8) or later: affected until the kernel update is installed
• Embedded and router systems (e.g. based on OpenWrt): only affected if the kernel is 6.5 or later and the USB storage driver is included
Kernels older than 6.5 are not affected, regardless of the distribution. The command "uname -r" shows the running kernel.
Fixed versions: Linux 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3, or the corresponding security updates from your distribution. A reboot is required after the kernel update.
Systems with USB ports that third parties can reach are especially at risk: kiosks and information terminals, point-of-sale systems, digital signage, EV chargers, vehicle and industrial controllers, and workstations and laptops in publicly accessible areas.
A note on Debian 11: although Bullseye is not affected by this vulnerability, it no longer receives regular security updates. Systems running Bullseye with freely accessible USB ports should therefore be secured regardless and migrated to a current Debian release in the medium term.
Our own managed systems
Our server infrastructure runs kernel versions that are not affected and is located in access-controlled data centres.
Customers with KVM and dedicated servers
Virtual servers have no access to physical USB ports. Based on current information, this attack is therefore not possible against your KVM server. We still recommend keeping the kernel up to date with your distribution's regular security updates.
Recommendations for your own Linux devices with accessible USB ports
• Install your distribution's kernel update and reboot
• If you cannot update soon: disable the USB storage drivers (blacklist usb-storage and uas via /etc/modprobe.d) or use USBGuard so that USB devices are only allowed after approval
• Restrict physical access to USB ports on exposed devices
We are happy to check and secure your systems for you. Customers with a maintenance contract do not need to do anything - we take care of it. Without a maintenance contract, simply send your order to support@smart-weblications.de.
More information:
https://security-tracker.debian.org/tracker/CVE-2026-98232
https://nvd.nist.gov/vuln/detail/CVE-2026-98232