New USB2shell Attack Lets Hackers Gain Root Access with a Malicious USB

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


A malicious USB device can make an unpatched Linux system run commands as root, the operating system’s highest level of access.

The flaw, dubbed usb2shell and tracked as CVE-2026-98232, kicks in when the Linux kernel automatically checks a newly connected USB storage device. Nobody needs to sign in, open a file, or mount a drive. The attacker does, however, need physical access to a USB port.

That requirement makes usb2shell a particular concern for Linux-powered kiosks, payment terminals, EV chargers, and industrial control panels with accessible ports.

Unlike the Retadup USB worm campaign, where someone must open a malicious shortcut on Windows, usb2shell targets the operating system before an application can open anything on the device. Disabling automatic mounting alone does not stop the kernel from scanning it.

Drivesec researchers Z3r0n37 and Alberto247 identified the issue and described it in their public usb2shell research disclosure on November 30, 2026.

What they documented was a kernel vulnerability and a proof of concept, not a newly discovered malware strain. The team demonstrated root command execution on a standard Debian kernel with its memory layout protection enabled. The disclosure did not identify any victims or report attacks in the wild.

New usb2shell Attack Let Hackers Gain Root Access

The bug sits in the Linux kernel’s SCSI storage code and was introduced with support for Command Duration Limits in Linux 6.5. That feature lets a system set time limits on certain storage commands.

During the initial device scan, the kernel reads information supplied by the USB device but fails to validate some of the reported lengths. As a result, it can expose up to 64 bytes of kernel memory and overwrite one byte outside the intended buffer.

The Debian demonstration shows why a one-byte write matters: paired with the memory leak, it was enough to achieve root command execution on the researchers’ test system.

The result was not guaranteed on every attempt. The first two tries failed without crashing the machine, and the third succeeded. Unlike several Linux kernel privilege escalation flaws that start with local software access, usb2shell does not require an existing user account or shell.

The Cynthion USB device (left) attacks a stock Debian 6.12.22+bpo-amd64 kernel (Source – usb2shell)

The Android findings were narrower. In the Android Generic Kernel Image and Samsung Galaxy A16 builds that Drivesec checked, compiler bounds checks prevented the out-of-bounds write, but the memory leak remained.

Earlier reporting on Cellebrite’s Linux USB exploits covered a separate set of vulnerabilities used to unlock an Android phone. That case should not be confused with usb2shell: Drivesec did not demonstrate Android root access through this flaw.

Affected Linux Versions, Patches, and USB Protections

A device is exposed when it runs an unpatched Linux kernel from version 6.5 onward, supports USB mass storage through usb-storage or uas, and has a port an attacker can reach.

Drivesec lists 6.6.158, 6.12.112, 6.18.54, 7.2.8, and mainline 7.3 as the first fixed releases for their respective branches. The upstream fix was committed on September 9, and the Linux CVE Numbering Authority published the CVE on October 6.

Administrators should check their distribution or device vendor’s advisory before deciding whether a system is vulnerable. Vendors can backport the fix, meaning they apply it to an older kernel branch without adopting the upstream version number shown in the disclosure.

For embedded devices, verify the firmware release actually running on the unit. Prioritize equipment with ports that customers, visitors, or other people outside the organization can reach.

Where patching must wait, Drivesec recommends preventing the usb-storage and uas drivers from loading on systems that do not need USB storage.

Where approved peripherals are still required, USBGuard or a default-deny USB authorization policy can prevent unapproved devices from being scanned.

Other USB-borne malware campaigns illustrate a separate risk from removable media, but the usb2shell priority is to block unauthorized device access before the kernel probes the device.

Indicators of compromise (IoCs):-

Artifact type Value in the disclosure How to use it
Malware file hashes (SHA-256, SHA-1, or MD5) Not published No sample hashes to search for
Network indicators or malicious USB identifiers Not published No domains, IP addresses, or USB identifiers to block
Upstream fix commit 3d676e458fe0 Verify the kernel fix
Stable backport commits 39491a1ae930, 60b0b8ce803e, 6233d0b3ef46, 99a6e4a9176d Verify fixes in stable branches

Note: IP addresses and domains are intentionally Qdefanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join ANY.RUN and Torq to learn how TI Feeds can help your SOC detect up to 30% of malicious IOCs earlier & accelerate investigations -> Attend Free Live Webinar

The post New USB2shell Attack Lets Hackers Gain Root Access with a Malicious USB appeared first on Cyber Security News.