Back Gbhackers USB2Shell Linux Kernel Vulnerability Allows Root Access Through Malicious USB Devices Without Login
A Linux kernel vulnerability, tracked as CVE-2026-98232. It lets a crafted USB device run commands as root on a vulnerable machine.
The vulnerability is a stack out-of-bounds bug in the Linux SCSI core, in the function scsi_cdl_enable(). The kernel reaches it automatically while scanning a newly connected USB storage device .
Drivesec named the issue “usb2shell” as the physical counterpart of this year’s “2shell” and “4shell” bugs, such as PHP2Shell and Java4Shell.
Those are remote vulnerabilities, while usb2shell relies on a plugged-in device instead of a crafted request.
Command Duration Limits (CDL) support arrived in Linux 6.5. When the kernel scans a SCSI device that claims to be an ATA device with CDL support, it calls scsi_cdl_enable().
The function reads a mode page from the device into a 64-byte stack buffer and writes it back.
The kernel used the lengths in the device’s without validation. A calculated length can wrap to 64, and the buffer pointer can land past the end of the buffer.
A malicious device can therefore pull up to 64 bytes of kernel stack and clear one stack byte at an offset it chooses. All of this happens before userspace sees any disk.
Drivesec built a working exploit on a Cynthion USB device. It targeted a stock Debian 6.12.22+bpo-amd64 kernel with KASLR enabled.
The leaked stack data defeats KASLR. The chain then builds fake kernel structures that turn the one-byte overwrite into a controlled write. When the device is unplugged, the kernel runs a command supplied by the device as root.
The exploit is probabilistic, but failed attempts do not crash the system. In the demonstration, the first two attempts missed and retried quietly, and the third ran whoami and uname as root.
A system is vulnerable if it runs Linux 6.5 or later without the fix. It must also have usb-storage or uas support, either built in or loaded automatically, and have a USB port someone can reach.
Researchers at Drivesec said that , the attacker needs no login, no mount operation and no user click. Brief physical access to a USB port is enough.
Drivesec points to car infotainment and telematics units, EV chargers, point-of-sale terminals, kiosks, in-flight entertainment, industrial HMIs and smart- hubs as realistic targets.
USB2Shell Linux Kernel Vulnerability
Android kernels from 6.6 onward are affected, but only as an information leak. The Android GKI and Samsung Galaxy A16 builds Drivesec checked use compiler bounds checks that keep the write inside the buffer.
Administrators should update to a fixed linux kernel or backport upstream commit 3d676e458fe0, titled “scsi: core: Validate MODE SENSE lengths in scsi_cdl_enable()”.
Vendors often backport fixes without changing the version number. Drivesec offers a checker script, usb2shell-check.sh, which users should read before running.
Flagged systems should be compared against the vendor advisory for CVE-2026-98232.
Where patching is delayed, teams can stop building or auto-loading usb-storage and uas on systems that do not need mass storage.
They can also use USB allow-listing, such as USBGuard or authorized_default=0, so unauthorized devices are never scanned.
Drivesec found the bug on 26 August 2026 and had root execution on physical hardware two days later. It reported the issue privately to the SCSI maintainers on 2 September and sent the patch to linux-scsi on 4 September.
The fix was committed on 9 September, and the Linux CNA published the CVE on 6 October. Drivesec’s full write-up followed on 30 November.
Stops Cyber threats before impact with 21 min faster MTTR. Integrate ANYRUN’s Sandbox in your SOC .
Artificial Intelligence
Cyber security Course
Cyber Security Resources
Cybersecurity
Information Gathering
Information Security Risks
Turnitin Cyberattack Exposes Student and Educator Accounts to Data Theft Risks
easyDNS Confirms Cyberattack Exposing Customer Credentials and Sensitive Personal Data
Docker Sandboxes Vulnerability Lets Malicious AI Agents Steal OpenAI, Anthropic and GitHub API Keys
Hackers Turn Downloadable AI Models Into Malware Carriers Without Breaking Their Normal Functions
Hackers Exploit React2Shell to Steal 50,000 Credentials From 19,000 Servers
Canada Detects Suspected AI-Powered Cyberattacks on Government Networks, Warns of Service Disruptions
