Download Privacy Needle App

Type to search

Cybersecurity

Linux Kernel Vulnerability Grants Root Access via Malicious USB Devices

Share
A close-up of a USB port on a laptop computer.

A critical vulnerability in the Linux kernel, dubbed USB2Shell, allows a crafted USB device to execute commands with root privileges on unpatched systems. The flaw, tracked as CVE-2026-98232, can be exploited without user interaction, even if the machine is locked or the user is logged out.

The issue stems from how the Linux kernel automatically scans USB storage devices the moment they are connected. Researchers at Drivesec, who demonstrated the attack, found that the vulnerability resides in the kernel’s SCSI core. Specifically, the flaw exists within a function responsible for enabling a storage feature known as Command Duration Limits.

Technical Mechanics of USB2Shell

When a malicious USB device identifies itself as an ATA disk supporting Command Duration Limits, the kernel attempts to copy device information into a small buffer on its stack. However, the kernel relies on length values provided by the device itself without verifying them against the actual buffer size. This oversight leads to a stack-based buffer overflow.

According to the researchers, a device that provides manipulated length values can read up to 64 bytes of kernel stack memory and modify a single byte. In their testing, this single-byte change was sufficient to bypass Kernel Address Space Layout Randomisation (KASLR) and gain full write access to kernel memory. This allowed the researchers to execute a chosen command as root immediately after the device was unplugged.

Because the automatic scan occurs before any user-level protections are active, standard security measures—such as locked screens or rules against mounting unknown drives—do not prevent the initial communication between the device and the privileged kernel code.

Affected Versions and Mitigation

The USB2Shell vulnerability was introduced in Linux 6.5 and is present in subsequent releases until the fix is applied. While the upstream kernel received a patch in September 2024, the exact versioning may vary across different Linux distributions due to backporting practices. For instance, while Debian 12’s standard kernel was reportedly unaffected, Red Hat addressed the issue in its version 5.14 kernel.

System administrators are advised to update to a patched kernel immediately. If an immediate update is not possible, the following mitigations are recommended:

  • Disable the usb-storage and uas drivers on machines that do not require USB storage support.
  • Implement USB allow-listing using tools like USBGuard or by setting authorized_default=0 in the kernel configuration to require manual approval of new devices.

The vulnerability was notably identified by Sashiko, an AI-driven code-review system developed by Google for the Linux Foundation, before being independently researched and exploited by Drivesec. While the flaw poses a significant risk to physical hardware—such as kiosks, payment terminals, and car infotainment systems—no real-world attacks have been identified to date.

Watch Our Latest Video
Stay ahead with expert insights on privacy, cybersecurity, artificial intelligence, data protection and compliance.
Privacy Needle AI | AI DPO Assistant & NDPA Compliance Software
Published: November 2, 2026
Daily Privacy News
Cybersecurity Updates
Data Protection Tips
GDPR & NDPA Explained
Tags:
Ikeh James Certified Data Protection Officer (CDPO) | NDPC-Accredited

Ikeh James Ifeanyichukwu is a Certified Data Protection Officer (CDPO) accredited by the Institute of Information Management (IIM) in collaboration with the Nigeria Data Protection Commission (NDPC). With years of experience supporting organizations in data protection compliance, privacy risk management, and NDPA implementation, he is committed to advancing responsible data governance and building digital trust in Africa and beyond. In addition to his privacy and compliance expertise, James is a Certified IT Expert, Data Analyst, and Web Developer, with proven skills in programming, digital marketing, and cybersecurity awareness. He has a background in Statistics (Yabatech) and has earned multiple certifications in Python, PHP, SEO, Digital Marketing, and Information Security from recognized local and international institutions. James has been recognized for his contributions to technology and data protection, including the Best Employee Award at DKIPPI (2021) and the Outstanding Student Award at GIZ/LSETF Skills & Mentorship Training (2019). At Privacy Needle, he leverages his diverse expertise to break down complex data privacy and cybersecurity issues into clear, actionable insights for businesses, professionals, and individuals navigating today’s digital world.

  • 1

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.