On November 30, 2026, security researchers at Drivesec disclosed technical details of a Linux kernel vulnerability dubbed USB2Shell, tracked as CVE-2026-98232.
The vulnerability allows a malicious USB peripheral to trigger kernel memory corruption during automatic device detection, potentially resulting in arbitrary command execution with root privileges.
The attack requires physical access but does not require an active user session or manual mounting of a storage device.
Security Vulnerability
| Parameter | Description |
|---|---|
| CVE Identifier | CVE-2026-98232 |
| Vulnerability Name | USB2Shell |
| Affected Software | Linux Kernel |
| Affected Component | SCSI Core |
| Affected Function | scsi_cdl_enable() |
| Vulnerability Type | Out-of-Bounds Memory Access |
| Attack Vector | Physical |
| Authentication Required | No |
| User Interaction | None |
| Security Impact | Kernel Memory Disclosure and Root Command Execution |
| Proof of Concept | Demonstrated |
| Active Exploitation | Not publicly confirmed |
| Security Fix | Available |
Vulnerability Details
The vulnerability affects the implementation of Command Duration Limits (CDL), introduced in Linux 6.5.
Insufficient validation of device-supplied data lengths during SCSI initialization can cause the kernel to access memory outside the intended buffer.
A specially crafted peripheral can trigger the vulnerability before the operating system presents the storage device to userspace applications.
Consequently, disabling desktop-level automatic mounting does not provide sufficient protection.
Researchers demonstrated root command execution against a standard Debian installation running kernel 6.12.22+bpo-amd64, despite kernel address space layout randomization (KASLR) being enabled.
Affected and Fixed Versions
Unpatched Linux kernels starting with version 6.5 are potentially vulnerable.
| Linux Kernel Branch | Fixed Version |
|---|---|
| 6.6.x | 6.6.158 |
| 6.12.x | 6.12.112 |
| 6.18.x | 6.18.54 |
| 7.2.x | 7.2.8 |
| Mainline | 7.3 |
Linux distributions and hardware manufacturers may backport security fixes independently of upstream kernel releases.
Administrators should consult their distribution's security advisories to determine whether the installed kernel package contains the fix.
Unsupported kernel branches should be replaced with supported releases.
Affected Environments
The vulnerability presents the greatest risk to Linux systems with accessible USB ports and enabled USB storage support.
Potentially exposed environments include:
- Dedicated servers and physical workstations.
- Public access terminals and kiosks.
- Point-of-sale systems.
- Industrial automation equipment.
- Automotive infotainment systems.
- Electric vehicle charging stations.
- Embedded Linux devices.
- Network and security appliances.
- Virtual machines with physical USB device passthrough.
For Android devices, researchers observed kernel memory disclosure but did not achieve equivalent root command execution on the examined builds due to additional compiler bounds checks.
Security Impact
Depending on the kernel configuration and operating environment, successful exploitation could result in:
- Unauthorized access to kernel memory.
- Bypass of operating system security mechanisms.
- Execution of commands with root privileges.
- Unauthorized modification of system files.
- Exposure of sensitive credentials.
- Installation of malicious software and persistent backdoors.
- Compromise of hosted applications and services.
- Complete loss of system integrity.
Physical access restrictions significantly reduce the exposure of conventional data center infrastructure to this attack.
Checking the Installed Kernel
Administrators can check the currently running Linux kernel using the following command:
uname -r
Check whether USB storage drivers are currently loaded:
lsmod | grep -E '^(usb_storage|uas)[[:space:]]'
Check available USB storage driver configuration:
grep -E '^CONFIG_USB_(STORAGE|UAS)=' /boot/config-$(uname -r)
Drivers compiled directly into the kernel may not appear in the lsmod output.
Update Recommendations
We strongly recommend that customers running affected Linux systems install the latest available kernel security updates provided by their distribution.
Updating the Linux Kernel
Use the following commands to update the Linux kernel through your distribution's package manager.
apt update
apt upgrade -y
dnf upgrade --refresh 'kernel*' -y
After installing the security updates, reboot the system during a scheduled maintenance window.
systemctl reboot
Verify the running kernel version after the reboot:
uname -r
Important: Verify that the installed kernel contains the security fix for CVE-2026-98232. Installing the latest available package does not guarantee protection if the distribution has not yet released a corrected kernel.
Temporary Mitigation
If an immediate kernel update is not possible, administrators should restrict access to USB interfaces and disable unnecessary USB storage functionality.
Disabling USB Storage Drivers
On systems that do not require USB mass storage devices, create the following module configuration:
cat > /etc/modprobe.d/disable-usb-storage.conf <<'EOF'
blacklist usb_storage
blacklist uas
install usb_storage /bin/false
install uas /bin/false
EOF
Updating Initramfs
Apply the updated module configuration to the initial RAM filesystem.
update-initramfs -u -k all
dracut --regenerate-all --force
Reboot the system during a scheduled maintenance window.
systemctl reboot
Warning: Do not apply this configuration to systems that depend on USB storage for booting, backups, or critical operations. These module restrictions do not disable drivers compiled directly into the kernel.
Restricting USB Device Access
Additional protective measures include:
- Physically securing unused USB ports.
- Disabling unnecessary USB interfaces through firmware settings.
- Implementing USB device allowlisting with USBGuard.
- Restricting physical access to servers and workstations.
- Disabling unnecessary USB passthrough to virtual machines.
- Preventing unauthorized peripherals from connecting to production infrastructure.
These measures reduce exposure but do not replace the official kernel security fix.
Impact on VPS and Dedicated Servers
USB2Shell differs from traditional network-based vulnerabilities because the documented attack requires access to a physical USB interface.
For conventional VPS environments without physical USB device passthrough, the documented attack path is generally unavailable to remote customers.
The vulnerability does not establish a conventional KVM guest-to-host escape mechanism.
Nevertheless, infrastructure providers should maintain updated kernels on physical hypervisors and review configurations that expose USB devices to guest virtual machines.
Dedicated servers with accessible USB ports should receive particular attention.
Security Recommendations
Administrators should prioritize the following actions:
- Install available Linux kernel security updates.
- Verify that corrected kernels are running after reboot.
- Restrict physical access to production infrastructure.
- Disable unnecessary USB storage support.
- Review USB device passthrough configurations.
- Implement USB device authorization policies.
- Monitor kernel logs for unexpected peripheral connections.
- Maintain regular system backups.
- Replace unsupported Linux kernel releases.
USB2Shell demonstrates that physical peripheral interfaces remain an important operating system attack surface, even when network access is restricted and conventional authentication mechanisms are properly configured.
Installing a patched kernel remains the recommended permanent solution.