Patch available CVSS 5.4 Security news

USB2Shell: Linux kernel flaw CVE-2026-98232 can be exploited by a malicious USB drive just by plugging it in

CVE-2026-98232 in the Linux kernel, which researchers at Italian security firm Drivesec have dubbed USB2Shell, can be exploited by a malicious USB drive as soon as it is plugged in – no login and no mounting required. It affects kernels from 6.5 onwards. The kernel fix landed in September and distributions have shipped it. No attacks in the wild have been reported, and an attacker needs physical access to a USB port.

Kyberkit editorial team · · event date · reading time 4 minutes · For admins and analysts

Patch available: USB2Shell, CVE-2026-98232, CVSS 5.4

Key points

  • The bug sits in scsi_cdl_enable() in the SCSI core: lengths taken from the device's response aren't checked against a 64-byte stack buffer. A USB drive that identifies as ATA and advertises CDL support can make the kernel read stack data during automatic scanning.
  • According to Ubuntu, a research test in QEMU ran a command as root when the device was attached, with KASLR and NX enabled. The research comes from Drivesec and, according to media reports, was published on 30 Nov 2026.
  • The fix is in kernels 6.6.158, 6.12.112, 6.18.54, 7.2.8 and 7.3. Debian shipped it in DSA-6568-1 and DLA-4850-1.
  • Ubuntu rates the flaw CVSS 4.0 5.4 (medium) because physical access is required. NVD has not assigned its own score yet.

Vulnerabilities: CVE-2026-98232

What happened

According to media reports, researchers at Italian security firm Drivesec published details on 30 November 2026 of a Linux kernel flaw they call USB2Shell. The bug itself is CVE-2026-98232: the kernel's CVE team published it on 6 October 2026, and the fix had already gone into the kernel in September. What's new is that Drivesec showed how to turn it into root command execution when a USB drive is plugged in. Ubuntu's entry credits Drivesec's research with finding the bug independently.

Technical details

The flaw is in scsi_cdl_enable() in the SCSI core, which handles Command Duration Limits (CDL), a disk feature that caps how long commands may take. The function takes length fields from the device's MODE SENSE response and uses them to locate the ATA feature page in a 64-byte stack buffer. If the device reports a total length shorter than its mode header and block descriptors, an unsigned integer wraps and the code reads outside the buffer. Kernel stack data can then be sent back to the device in a MODE SELECT command.

The bug is reachable during automatic scanning of a USB drive that identifies as ATA and advertises CDL support – nothing needs to be mounted or run. Ubuntu says a build-specific research test (QEMU and Raw Gadget) executed a fixed command as root on attach, with KASLR and NX protections enabled. The attacker does, however, need physical access to a USB port.

Who is affected

The CDL code has been in the kernel since 6.5. Fixed branches are 6.6.158, 6.12.112, 6.18.54, 7.2.8 and kernel 7.3 (the fix is in 7.3-rc4). Older kernels, such as 6.1 on a default Debian 12 install, don't contain the vulnerable code. Debian 13 (trixie) has the fix in package 6.12.113-1 (DSA-6568-1), and Debian 12 with the optional 6.12 kernel in DLA-4850-1. Ubuntu scores the bug CVSS 4.0 5.4.

How to tell if you were compromised

Neither vendors nor the researchers have published indicators. Exploitation takes moments after the device is attached. If you log kernel events, check dmesg or journalctl -k for unknown USB storage devices identifying as ATA disks on machines where nothing should be plugged in. Ship kernel logs to a central server – an attacker with root can wipe them on the machine itself.

Sysfs tells you whether the running kernel has the CDL code at all: kernels with CDL support (6.5 and later) expose cdl_supported and cdl_enable attributes on SCSI devices. The attribute alone doesn't mean the kernel is unpatched – the package version is what counts.

uname -r                                    # which kernel is running
ls /sys/class/scsi_device/*/device/cdl_supported 2>/dev/null
journalctl -k | grep -i "usb-storage\|uas"  # history of attached storage

What to do

  • Update the kernel following your distribution's advisory and reboot – until you do, the old kernel keeps running. If you rely on kernel livepatching, check your distribution's advisory to see whether the fix shipped that way.
  • On kiosks, terminals and shared computers that can't be patched right away, restrict USB ports – physically (port blockers, locked enclosures) or with device allow-listing such as USBGuard. A locked screen doesn't help: the bug fires before anyone logs in.
  • Where you don't need USB storage at all, you can temporarily stop the usb-storage and uas modules from loading (a blacklist in /etc/modprobe.d/). Mice and keyboards keep working, USB drives won't – test it on one machine first.
  • Don't leave admin and developer laptops unattended in public places or while travelling. A malicious device is a cheap attack for a targeted adversary.
  • Don't plug in unknown USB drives, including “found” ones or freebies handed out at events.

The risk split is simple: a home computer nobody else can touch is low risk and a routine update is enough. Publicly reachable Linux devices – kiosks, self-service terminals, digital signage, industrial panels – and the targets of focused attacks are high risk.

Timeline

  • 9 Sep 2026 – kernel fix committed (per media reports)
  • 6 Oct 2026 – CVE-2026-98232 published by the kernel CVE team (NVD)
  • 30 Nov 2026 – Drivesec publishes details and the USB2Shell name (per media reports)
  • by 1 Dec 2026 – distribution fixes, including Debian DSA-6568-1 and DLA-4850-1 (exact release dates not verified)

FAQ

Does the attacker need to be physically present?

Yes. They have to plug a malicious device into a USB port. That puts machines strangers can reach most at risk – kiosks, information terminals, shared computers in schools and workplaces, and laptops left unattended.

Am I safe if I don't mount the drive?

No. According to the bug description, plugging the device in is enough: the kernel scans it automatically and the bug triggers before anything is mounted.

How do I know my kernel is fixed?

Compare your kernel package version with your distribution's security notice rather than just the upstream version number – distributions backport fixes into older branches. uname -r shows which kernel is actually running; you need to reboot after updating.

Sources

  1. NVD – CVE-2026-98232
  2. Debian Security Tracker – CVE-2026-98232
  3. Ubuntu – CVE-2026-98232
  4. Linux kernel – stable fix, commit 3d676e45

Spotted a mistake? Let us know and we will correct it openly.