Subscribe
0%
Illustration for: USB2Shell (CVE-2026-98232): a rigged USB stick can get root on unpatched Linux before login. Which kernels are fixed

USB2Shell (CVE-2026-98232): a rigged USB stick can get root on unpatched Linux before login. Which kernels are fixed

Drivesec has published details of a Linux kernel bug that lets a malicious USB storage device run code as root the moment it is plugged in, with no login, mount or click. Fixes have been in stable kernels since early October; anyone running Linux 6.5 or later on machines with reachable USB ports should confirm they have one.

Listen to this article0:00 / 5:14

Italian security firm Drivesec has published a full write-up of "USB2Shell" (CVE-2026-98232), a Linux kernel flaw that lets a specially built USB device gain root on an unpatched machine as soon as it is plugged in. The bug fires while the kernel scans the new device, before anyone logs in, mounts the drive or clicks anything, according to every outlet that covered the November 30 disclosure. Disabling automount or locking the screen does not help.

Why it matters: the fix is not new — it went upstream in September and into stable kernels between late September and early October, per The Cyber Security Guru's reading of the kernel history — but now that the technique is documented, unpatched laptops, kiosks, lab machines and embedded Linux boxes with open USB ports are the obvious targets. No in-the-wild exploitation has been reported, and the flaw was not in CISA's Known Exploited Vulnerabilities catalogue at publication, according to the reports.

What the bug is

The flaw sits in the kernel's SCSI core, in scsi_cdl_enable(), code that handles Command Duration Limits (CDL), a feature added in Linux 6.5. A device that pretends to be an ATA disk with CDL support can return malformed length values that the kernel trusts, GBHackers and SecurityOnline report. The result, per The Cyber Security Guru, is a leak of up to 64 bytes of kernel stack plus a small out-of-bounds write that clears two bits of one stack byte. SecurityOnline classes it as CWE-787 (out-of-bounds write); the fix commit is titled as validating MODE SENSE lengths in that function, it says.

That sounds tiny, but Drivesec turned it into root. Its test rig, as described by Cyber Security News and The Cyber Security Guru, used a programmable Cynthion USB device against a Debian 6.12 backports kernel with KASLR enabled; the third attempt succeeded and the failed attempts did not crash the machine. Drivesec has not published a success rate.

The attacker needs physical access to a USB port, and the machine needs the usb-storage or uas driver built in or auto-loadable — the default on most desktop distributions.

Timeline

Date (2026) Event Source
Jul 17 Google's Sashiko AI code reviewer flags the same pattern on the kernel mailing list The Cyber Security Guru
Aug 26 Drivesec finds the bug; root on real hardware two days later GBHackers
Sep 2 Reported privately GBHackers
Sep 9 Fix committed upstream (3d676e458fe0) GBHackers, The Cyber Security Guru
Late Sep–early Oct Fixed stable kernels released The Cyber Security Guru
Oct 6 CVE published by the kernel CNA Cyber Security News, GBHackers
Nov 30 Drivesec publishes full write-up, demo video and a checker script All four outlets

Fixed kernel versions

All four outlets list the same fixed releases:

Branch Fixed in
6.6 LTS 6.6.158
6.12 LTS 6.12.112
6.18 6.18.54
7.2 7.2.8
Mainline 7.3

Distribution kernels backport fixes under their own version numbers, so check your vendor's advisory rather than the number alone. SecurityOnline cites Red Hat fixes for RHEL 9 and 10 (RHSA-2026:102090, -102168, -102710) and Amazon Linux 2023 advisories; The Cyber Security Guru says Debian fixed trixie and the bookworm 6.12 backports kernel at 6.12.113-1, and that bookworm's standard 6.1 kernel never contained the flawed code. The Cyber Security Guru also says the code only became reachable from a plugged-in device after a June 2024 change, which would narrow the real window on some older branches; that reading comes from KernelScan's source analysis, not hardware testing.

Severity scores differ: Red Hat rates it 8.4, while SUSE and Amazon give 5.7 based on the physical-access requirement, The Cyber Security Guru reports. On Android kernels (6.6 and later), Drivesec found only the information leak, not code execution, according to Cyber Security News.

Points of disagreement: SecurityOnline's headline says a PoC exploit was released, but The Cyber Security Guru says no exploit code was public as of December 1 — what is public is the write-up, a demo video and a checker script. We could not open Drivesec's site (usb2shell.com), the kernel commit, or the Debian and Red Hat trackers from our systems this run, so the version and advisory details above are as reported by these outlets.

What to do

  1. Update the kernel to a release on or above the fixed versions (or your distro's patched build) and reboot — the fix does nothing until the new kernel is running. Check with uname -r.
  2. If you can't patch yet, stop USB storage from loading where it isn't needed. If the drivers are modules:
echo -e "blacklist usb-storage\nblacklist uas" | sudo tee /etc/modprobe.d/no-usb-storage.conf

A driver built into the kernel can't be blacklisted, The Cyber Security Guru notes.

  1. Use USB device authorisation: USBGuard, or the usbcore.authorized_default=0 kernel parameter, blocks new devices until approved, per the outlets.
  2. Prioritise exposed hardware — shared workstations, kiosks, point-of-sale and industrial Linux systems, and laptops that leave the office — where someone could get a few seconds at a USB port.

Who should care most: anyone who assumed a locked screen protected an unattended Linux machine. For this bug, it doesn't.

Sources

  1. The Cyber Security Guru — USB2Shell (CVE-2026-98232): USB Stick to Root on Linux thecybersecguru.com
  2. GBHackers — USB2Shell Linux Kernel Vulnerability Allows Root Access Through Malicious USB Devices Without Login gbhackers.com
  3. SecurityOnline — CVE-2026-98232: Linux Kernel usb2shell vulnerability securityonline.info
  4. Cyber Security News — New usb2shell Attack Let Hackers Gain Root Access with a Malicious USB cybersecuritynews.com

#Linux#Linux kernel#CVE-2026-98232#USB2Shell#Drivesec#USB#SCSI#physical access#patch