What to do3 steps
Update to a fixed kernel.
Install a kernel that carries the fix: mainline 7.3, or stable 6.6.158, 6.12.112, 6.18.54, 7.2.8 or later on those branches. On a distribution kernel, take the vendor update that backports commit
3d676e458fe0and reboot so the new kernel is running. Check the running version withuname -r.Until you can reboot, restrict who can attach USB storage.
Block the
usb-storageanduasmodules where USB disks are not needed, or use a tool such as USBGuard to allow only known devices, or disable unused USB ports. The bug needs a device to be plugged in, so physical-access control and port policy reduce the exposure directly.Treat unattended machines as the main risk.
Kiosks, servers with reachable ports, and laptops left logged in are the realistic targets, because the attack needs no credentials and leaves little trace. Prioritise the fixed kernel on any host whose USB ports are physically reachable by untrusted people.
Are you affected?only if all are true
- Physical access to a USB port. The kernel scans an attached USB mass-storage device automatically; no login, no mount and no user interaction are needed.
- Linux 6.5 or later with USB mass-storage support (usb-storage / uas) and without the fix.
- The attacker's device identifies as an ATA device and advertises Command Duration Limits (CDL) support, so the kernel calls scsi_cdl_enable() during the scan.
- On most builds the bug leaks kernel stack memory to the device (breaking KASLR) and the one-byte out-of-bounds write is used to chain to root command execution. On Android, compiler bounds checks block the write, so it is an information leak only.
Check your version
- On a Linux host
uname -r - Prompt for your own agent, read-onlyAm I affected by USB2SHELL?
Read the prompt
Check whether the systems I am authorized to inspect are affected by USB2SHELL (CVE-2026-98232). A malicious USB storage device that identifies as an ATA disk and advertises Command Duration Limits triggers an out-of-bounds stack access in the Linux kernel's scsi_cdl_enable() during the automatic device scan, leaking kernel stack memory to the device and, through a narrow one-byte overwrite, letting the finder chain it to root command execution with no mount, login or user interaction. It is exploitable under these conditions: - Physical access to a USB port. The kernel scans an attached USB mass-storage device automatically; no login, no mount and no user interaction are needed. - Linux 6.5 or later with USB mass-storage support (usb-storage / uas) and without the fix. - The attacker's device identifies as an ATA device and advertises Command Duration Limits (CDL) support, so the kernel calls scsi_cdl_enable() during the scan. - On most builds the bug leaks kernel stack memory to the device (breaking KASLR) and the one-byte out-of-bounds write is used to chain to root command execution. On Android, compiler bounds checks block the write, so it is an information leak only. Commands the catalog lists to find the version or the setting (read each one before you run it): - On a Linux host: uname -r What the catalog says to do on an affected system (report these, do not carry them out): 1. Update to a fixed kernel. 2. Until you can reboot, restrict who can attach USB storage. 3. Treat unattended machines as the main risk. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://linux.2shell.wtf/usb2shell
Timeline3 events
Reported to the vendor
An automated kernel review ("Sashiko AI Review") flags the code path on linux-scsi; Drivesec had found it independently in their research
Patched
Drivesec's fix lands in drivers/scsi/scsi.c: mainline 7.3, backported to 6.6.158, 6.12.112, 6.18.54 and 7.2.8
Disclosed
Drivesec publishes the usb2shell writeup, naming the bug; the proof of concept is described but not released as code
Sources4 links
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
