Drivesec disclosed a Linux kernel bug that lets a malicious USB device execute commands as root. The flaw, CVE-2026-98232, exists in the SCSI core and triggers when the kernel automatically scans a new USB storage device. It affects Linux 6.5 and later. The device reads 64 bytes of kernel stack and overwrites one byte to hijack execution. Drivesec demonstrated this on a stock Debian kernel with KASLR enabled. Anyone running an unpatched Linux 6.5+ kernel with USB mass storage support is exposed. Drivesec advises updating to fixed versions 6.6.158, 6.12.112, 6.18.54, 7.2.8, or 7.3. If you cannot update, stop the usb-storage and uas modules from loading on untrusted ports to reduce risk.
The story — Drivesec found a stack out-of-bounds bug in the Linux SCSI core, scsi_cdl_enable(). The bug allows a crafted USB device to read 64 bytes of kernel stack and overwrite one byte, leading to root command execution on Linux 6.5 and later. The exploit works during automatic device scanning without user interaction. Fixed versions include 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3. (Source)