Usb2shell Is Vulnerability In Linux Kernel, Exploitable Through Malicious USB Devices. Comic Vulnerability

Information has been disclosed about a vulnerability (CVE-2026-98232) in the Linux kernel, codenamed usb2shell, which allows code to be executed as root when connected to a computer specially designed USB device. The researchers who identified the problem demonstrated a successful attack on a system running Debian 13 in a standard configuration, carried out using a programmable USB device Cynthion. The vulnerability could be used to compromise unattended devices with a locked screen or insert malicious changes into the firmware of legitimate devices, which carry out an attack to install backdoors on the systems with which they are used.

The vulnerability is caused by a buffer overflow in the scsi_cdl_enable() function of the SCSI subsystem, called when scanning plug-in CDL-enabled USB drives (Command Duration Limits).
The problem occurs when processing the data returned from the “MODE SENSE” command. The data is copied to a fixed 64-byte buffer and then returned back to the device using the size information specified by the device and not checked against the size of the actual data transferred. This feature can lead to leakage of up to 64 bytes of the contents of the kernel stack to the device. In addition, when processing the “MODE SELECT” command, an integer overflow occurs, which can be used to write 1 byte beyond the bounds of the buffer on the stack.

The problem appears starting from the Linux kernel 6.5 (2023) and removed in releases 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. On the Android platform with kernels 6.6+, the vulnerability only leaks the contents of the kernel stack, and out-of-bounds writes are blocked by compilation checks. The status of vulnerabilities in distributions can be assessed on these pages: Debian, Ubuntu, SUSE/openSUSE, RHEL, Gentoo, Arch, Fedora. As a workaround for blocking the vulnerability, you can prevent autoloading of the usb-storage and uas kernel modules when connecting USB devices, or use the USBGuard package to activate these modules only when connecting trustworthy USB devices.

/Reports, release notes, official announcements.