usb2shell vulnerability linux

USB2Shell: the new USB flaw exposing Linux-based OT systems

Plug in a USB device, wait a few seconds, unplug it, and walk away with root access. That is what USB2Shell demonstrates, a Linux kernel vulnerability (CVE-2026-98232) disclosed on November 30, 2026 by researchers at Drivesec. In industrial environments, where Linux-based HMIs, industrial PCs and embedded devices routinely receive maintenance USB drives, the flaw raises a simple question: what do you do when you can’t update the kernel?

 

Key takeaways

  • USB2Shell affects unpatched Linux kernels 6.5 and later whenever USB storage is supported.
  • The attack triggers during the automatic device scan, before anyone logs in.
  • No file is involved: antivirus tools and decontamination stations have nothing to analyze.
  • A fix exists, but on industrial equipment it often depends on the manufacturer.
  • When you can’t patch, you need to stop the device from talking directly to the system thanks to USB isolation.

 

What USB2Shell does

The flaw sits in the kernel’s SCSI core, in the function that enables Command Duration Limits (CDL), a storage feature added in version 6.5. A USB device presents itself as an ATA disk that supports CDL. During the automatic scan that follows plug-in, the kernel copies the device’s reply into a 64-byte buffer, trusting the lengths reported by the device itself without checking them.

The device can then read kernel memory and modify one byte of it. The researchers turned these two primitives into command execution with root privileges, bypassing the kernel’s memory protections. The exploit doesn’t succeed every time, but failed attempts don’t crash the machine: the attacker can retry as many times as he wants.

Another notable aspect of the exploit: none of the following safeguards can kick in, because everything happens beforehand: screen lock, logged-out session, policies that refuse to mount unknown drives. USB risk is not only about file content; it is also a protocol risk.

 

Why industrial operators should pay attention

The researchers themselves list industrial HMIs among the devices whose USB ports may be reachable by third parties, alongside kiosks, payment terminals and EV chargers. No product has been shown to be vulnerable so far, but three realities on the plant floor increase exposure:

  • Linux is everywhere on the shop floor: HMIs, engineering workstations, edge gateways and SCADA servers, often shipped as frozen vendor images.
  • The fix isn’t always in the operator’s hands: on an appliance, only the vendor can deliver a patched kernel, after requalification.
  • USB is still the go-to channel for field work: updates, maintenance and log extraction, often performed by contractors.

Root access on an HMI or engineering workstation is a foothold to persist and move laterally across the industrial network.

 

What to do now

  1. Identify and patch

✅ Identify Linux machines running kernel 6.5 or later with an accessible USB port.

✅ Apply a patched kernel (6.6.158, 6.12.112, 6.18.54, 7.2.8, 7.3 or later) or the fix backported by your vendor.

✅ Rely on your distribution’s or manufacturer’s advisories: the version number alone is sometimes not enough to confirm the fix has been applied.

  1. Reduce the attack surface

✅ Prevent the usb-storage and uas drivers from loading where USB storage isn’t needed.

✅ Require device authorization before drivers load (USBGuard or authorized_default=0).

✅ Lock unused ports and supervise maintenance work.

  1. Physically isolate the port when you can’t patch

The first two measures assume you can modify the system. That is exactly what you can’t do on a vendor image, a certified system or legacy equipment. One option remains: make sure the device never talks directly to the system.

 

With Seclab Xport, the USB device is isolated from the host system

Xport

The Seclab Xport unit physically sits between the USB device and the critical system’s port. The protected system only sees a virtual USB drive presented by Xport, containing only the files allowed by the security policy. The malicious reply that USB2Shell exploits stops inside the unit and never reaches the host kernel. Xport itself is not affected by the vulnerability.

Why electronic isolation changes the game

 

Xport is built on Seclab’s patented Electronic AirGap technology:

– No direct communication: the device’s storage, keyboard emulation or network interface never reach the protected system.

– No changes to the host: no software, no driver, no configuration; compatible with Linux, Windows, macOS and legacy systems.

– A controlled policy: input only, output only or bidirectional, file extension filtering and signature checks with a decontamination station.

Protection doesn’t depend on an update, a threat signature or the configuration of the system being protected.

 

What’s next?

USB2Shell is a reminder that a USB port is an interface to the kernel, not just an entry point for files. Patching remains the reference response. For systems that can’t receive it, physically isolating the port lets you keep using USB without exposing the system. To learn more, read the Xport datasheet or request a demo.

 

Sources

• Drivesec, USB2Shell (CVE-2026-98232), technical write-up – https://usb2shell.com (November 30, 2026)

• The Hacker News, USB2Shell Linux kernel flaw – https://thehackernews.com/2026/12/usb2shell-linux-kernel-flaw-lets.html (December 1, 2026)

• SUSE, CVE-2026-98232 – https://www.suse.com/security/cve/CVE-2026-98232/

• Debian Security Tracker, CVE-2026-98232 – https://security-tracker.debian.org/tracker/CVE-2026-98232

• Seclab, OT USB Protection – https://www.seclab-security.com/en/ot-usb-protection/

Published On: 2 December 2026Categories: Blog, Blog