# Drivesec demonstrates USB attack that gains full control of an unpatched Linux machine

The USB2Shell demonstration ran a command without a login or a drive being opened. A kernel fix has been available since September, and administrators can check their distribution for an update.

Published 1 December 2026 · Verified as of 1 December 2026 · AveNews · Software

https://www.avenews.am/en/posts/usb2shell-linux-physical-root-exploit · [Հայերեն](https://www.avenews.am/hy/posts/usb2shell-linux-physical-root-exploit)

> **Summary:** Drivesec demonstrated a USB attack against an unpatched Linux machine that can run a command with full system privileges. The test did not always succeed, and administrators can check their Linux provider’s security guidance for the fix.

On 30 November 2026, Drivesec researchers demonstrated that a specially crafted USB device could make an unpatched Linux machine run an attacker-chosen command with root access, the highest level of system privilege. The attack needed no login, click or opening of the drive.[^1]

The flaw, called USB2Shell and identified as CVE-2026-98232, was fixed in September in the Linux kernel, the core software that manages hardware and system resources. Its vulnerability record was published in October. [The Hacker News](https://thehackernews.com/2026/12/usb2shell-linux-kernel-flaw-lets.html) said no attacks had been found and no victims identified; the flaw was not in the US government’s Known Exploited Vulnerabilities catalog at publication.[^1]

Red Hat rates the flaw Important and assigns it a CVSS 3.1 base score of 8.4 for its products.[^2]

## How the attack works

The physical attack requires an accessible USB port and support for USB storage through one of two drivers, usb-storage or uas. Red Hat says that, in its typical deployments, someone able to attach virtual devices to a guest system can also reach the flaw.[^1][^2]

The problem is in the kernel’s SCSI storage subsystem. During an automatic scan, a device presenting as an ATA disk with Command Duration Limits support can supply malformed length values that cause out-of-bounds stack access and disclose kernel memory. On their test machine, the researchers turned a single-byte change into a kernel-memory write and executed a command as root. The scan happens before a user signs in or opens the drive, so a locked screen or a rule against opening unknown drives does not stop it.[^3][^1]

Drivesec tested the exploit on one Debian machine running kernel 6.12.22, using a programmable USB tool called Cynthion. A security feature that randomizes the location of kernel code was enabled. The researchers said success was probabilistic: they published no success rate, and failed attempts did not crash the machine.[^1]

On the Android builds the researchers checked, they observed kernel-memory disclosure rather than root access: a compiler check blocked the memory-changing step.[^1]

## Check the distribution’s fix

The Linux kernel security advisory lists the following fixed releases and code changes in the main kernel release branches. A code change, or commit, identifies the patch for each branch.[^3]

*Linux kernel releases containing the fix*

| Release | Fix commit |
| --- | --- |
| 6.6.158 | `39491a1ae93054fea10b4030180e5c797b2c0343` |
| 6.12.112 | `60b0b8ce803e3c2b2a9e5485ab3f88599fb4c7a4` |
| 6.18.54 | `6233d0b3ef4623df0d6934dc8b93b161e9854f6b` |
| 7.2.8 | `99a6e4a9176da456904b67dcbae6e77d122782b7` |
| 7.3-rc4 | `3d676e458fe0c566f5a62753dc696b6a862fc412` |

Version numbers alone do not settle whether a distribution is vulnerable: providers can add features or fixes to older releases. Drivesec’s checking script can also miss a fix added by a provider. Administrators should check their distribution’s security information and update to a kernel containing the fix. The kernel security team recommends the latest stable kernel rather than applying individual changes on their own.[^1][^3]

Debian users can consult its [kernel security tracker](https://kernel-team.pages.debian.net/kernel-sec/CVE-2026-98232.html), which lists its bookworm security branch as not containing the vulnerable code and a fix as released for trixie. Red Hat users can check the company’s [product security page](https://access.redhat.com/security/cve/cve-2026-98232).[^4][^2]

If updating must wait, administrators can stop the usb-storage and uas drivers from loading on machines that do not need USB storage. They can also require approval of USB devices before a driver loads, using USBGuard or the authorized\_default=0 setting.[^1]

## References

- [Linux](https://www.avenews.am/en/references/linux-q388): The operating system whose kernel contains the patched USB storage flaw.
- [Debian](https://www.avenews.am/en/references/debian-q7715973): The Linux distribution used in Drivesec's test and one whose security tracker lists fixes.
- [Red Hat](https://www.avenews.am/en/references/red-hat-q485593): The Linux provider that publishes product-specific security information about the flaw.

## Sources

[^1]: [USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login](https://thehackernews.com/2026/12/usb2shell-linux-kernel-flaw-lets.html), The Hacker News, 1 December 2026
[^2]: [CVE-2026-98232 - Red Hat Customer Portal](https://access.redhat.com/security/cve/cve-2026-98232), access.redhat.com
[^3]: [cve/published/2026/CVE-2026-98232.mbox - pub/scm/linux/security/vulns - Git at Google](https://kernel.googlesource.com/pub/scm/linux/security/vulns/%2B/c235e20e44289ffce76b52cadddacecf2ca610cc/cve/published/2026/CVE-2026-98232.mbox), kernel.googlesource.com
[^4]: [CVE-2026-98232](https://kernel-team.pages.debian.net/kernel-sec/CVE-2026-98232.html), kernel-team.pages.debian.net
