A malicious USB device can cause a vulnerable Linux kernel to run a command as root without login or mounting. Drivesec published the usb2shell exploit on November 30, associated with CVE-2026-98232; it affects systems running Linux 6.5 or later that lack the fix, support USB storage, and allow the device to be physically connected.
First, determine whether the system is exposed
The assessment starts with the system’s use and accessibility, not just the kernel version. The vulnerability requires three conditions to coincide: Linux 6.5 or later without the fix, mass-storage support via usb-storage or uas—built in or loaded automatically—and a port an attacker can connect a device to.
This makes systems deployed in places accessible to strangers a priority: Drivesec cites payment terminals, kiosks, electric vehicle chargers, in-car entertainment and telematics systems, industrial panels, and smart home hubs. If you administer one of these, treat it as a priority if the port is within reach, even though no one needs to log in for the flaw to be triggered.
The demonstration was run with a Cynthion device against a system running Debian and kernel 6.12.22+bpo-amd64. The exploit is probabilistic: the first two attempts failed without causing a crash, and the third ran whoami and uname as root. The test demonstrates local execution via USB, not a remote attack.
What to do, in order
Inventory systems with accessible ports. Note which ones run Linux, what they do, and whether someone outside the organization can connect a device. Include terminals, kiosks, and industrial or embedded systems that are often left unattended. The risk described depends on physical access and the kernel scanning a compatible USB device.
Check the kernel, but don’t stop at its version. The stable branches listed as fixed are 6.6.158, 6.12.112, 6.18.54, and 7.2.8; the fix is in mainline 7.3. If the installed version is older, don’t assume it is vulnerable: distributions and manufacturers may backport the fix to kernels with the same version number. Confirm the status with your vendor.
Read the checker before running it. Drivesec provides a script to check systems. Download it, inspect its contents, and run it only after deciding that you trust it. These are the commands published by the team:
curl -fsSLO https://usb2shell.com/tools/usb2shell-check.sh less usb2shell-check.sh sh usb2shell-check.shIf the result flags the kernel, don’t interpret it in isolation: check your distribution’s or manufacturer’s advisory for CVE-2026-98232, or check the source tree for the upstream commit 3d676e458fe0. A backport may change the practical outcome without changing the version number.
Install a fixed kernel as soon as possible. The recommended solution is to update to a version that includes the fix or apply commit 3d676e458fe0, titled “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”, to the vendor’s kernel. For systems managed by a vendor, apply the package or procedure it publishes for CVE-2026-98232; do not replace the kernel with a version chosen solely by its number without verifying that it is appropriate for your system.
Reduce exposure while waiting for the patch. If the system does not need mass storage, avoid compiling in or automatically loading usb-storage and uas, the interfaces Drivesec identifies as the affected attack surface. If USB is needed, the team recommends allowlists with USBGuard or the authorized_default=0 option to prevent scanning unauthorized devices. Apply this according to the system configuration: the publication does not provide a menu path or distribution-specific instructions.
Repeat the review on all relevant systems. Don’t limit the check to conventional servers: the flaw occurs during automatic scanning of a SCSI device that presents itself as ATA with CDL support. Prioritize systems that meet all three conditions and where port access is not controlled; an unsuccessful exploit attempt may not cause an obvious crash.
Android and the limits of the assessment
Android requires a different interpretation. On Android kernels 6.6 or later, Drivesec observed a kernel stack content leak, but the builds it tested—Android GKI and the factory kernel on the Samsung Galaxy A16—use compiler bounds checks that keep the write within the buffer. In those builds, the described impact is a leak, not the root execution demonstrated on desktop Linux.
Don’t extrapolate that result to every Android phone or build: the cited assessment is limited to the builds examined. If you manage an Android-based product, ask the manufacturer about CVE-2026-98232 and the status of its specific kernel.
Mistakes to avoid
Don’t plug in an unknown USB device to “test it.” The flaw is triggered during automatic scanning and does not require the user to mount or interact with the drive. On a vulnerable system, connecting the device is precisely the action that can initiate the attack.
Don’t rely on the version number alone as a verdict. Backports can include the fix without changing it. Confirm the status with the checker and, if it flags the kernel, review the vendor’s advisory or the corresponding commit in the source.
Don’t confuse mitigation with a fix. Disabling storage support if it is not needed or restricting USB devices reduces exposure, but the recommended solution is still to install a fixed kernel or apply the patch. On systems accessible to third parties, first verify who can connect devices and whether the vendor already distributes the update.
Sources: usb2shell.com, usb2shell.com, RuntimeWire, LavX News, Библиотека программиста