CONNECT WITH US
Cyber Security

Cyber Security

USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login

The Hacker News logo

Published on

Add as a preferred source on Google
USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login

A crafted USB device can make an unpatched Linux machine run an attacker's command as root, without anyone logging in, mounting a drive, or clicking anything, researchers at Drivesec showed yesterday.

The flaw, dubbed "USB2Shell," is in the Linux kernel, which scans a USB storage device the moment it is plugged in, before anyone signs in. It was fixed in the kernel in September and published as CVE-2026-98232 in October, so only machines that have not taken the update are exposed.

The researchers ran the attack on one test machine, where it did not always work, and no real-world attacks have been found.

The flaw is in the kernel's SCSI core, in a function that turns on a storage feature called Command Duration Limits. When a USB device claims to be an ATA disk that supports the feature, the kernel copies information from the device into a small buffer on its stack. It uses the length values the device itself provides and does not check them against the buffer size.

Because this happens during the automatic scan that runs the moment a device is connected, a locked screen, a logged-out session, or a rule against mounting unknown drives does not stop it. The device is already talking to privileged kernel code before any of those protections apply.

A device that lies about those lengths can read up to 64 bytes of kernel stack memory and change a single byte of it, according to the kernel advisory.

On their test machine, the researchers turned that single-byte change into the ability to write to any location in kernel memory.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.