USB2Shell (CVE-2026-98232) — A Linux kernel flaw in pre-login USB handling
An unpatched Linux kernel can corrupt memory while detecting a USB storage device because it does not adequately validate the length of a device response. Under some conditions, the flaw could allow code execution with administrator privileges. Start with kiosks, field gateways, and portable equipment whose USB ports are physically accessible to others. Official CVE record
The kernel can detect USB devices while the screen is locked
A screen lock protects the user session. Automount settings determine whether the system mounts the filesystem on an already detected device. Kernel device detection happens earlier, so the flaw can have an impact even without a login or a filesystem mount.
The Linux CNA published the CVE on October 6, 2026. Patch availability varies by distribution release and package. The 8.4 CVSS 3.1 base score is Red Hat’s assessment. Whether the equipment runs an affected package and whether it has been compromised are separate questions that require separate evidence. CVE publication metadata · Red Hat assessment
Check the running kernel against the distribution advisory
Run these read-only commands in a shell on the Linux host you are checking. They require no administrator privileges. Expect distribution information, usually including ID and VERSION_ID, followed by the release string of the currently running kernel.
cat /etc/os-release
uname -r
Identify the vendor package that supplied the running kernel, then check the advisory for its release and package branch. Distributions backport fixes to established kernel branches, so comparing kernel version numbers alone cannot establish whether a build is affected. The table lists fix thresholds. For example, Debian 13’s security repository table showed the newer 6.12.118-1 when checked, while its fix threshold is 6.12.113-1. Debian Security Tracker · Ubuntu security advisory
| Distribution | Source package | Fix threshold or status |
|---|---|---|
| Debian 12 | linux |
Unaffected. The default package lacks the vulnerable code. |
| Debian 12 | linux-6.12 |
6.12.113-1~deb12u1 |
| Debian 13 | linux |
6.12.113-1 |
| Ubuntu 22.04 LTS | linux-hwe-6.8 |
6.8.0-149.149~22.04.1 |
Verify the equipment after patching
On affected equipment, apply the vendor-supported kernel patch and reboot during a maintenance window. Run the same commands again after rebooting and confirm that the running kernel matches the fixed package build. Check that essential functions and required peripherals still work.
If patching is delayed, restrict physical access to exposed USB ports. You can also apply a USB device allow policy that your organization has validated with the peripherals and functions it needs. These measures temporarily reduce exposure. Red Hat guide to USB device protection
Discussion