hn.today

Usb2shell: Root on Linux from a USB Plug-In

usb2shell.com369 points175 comments
Screenshot of Usb2shell: Root on Linux from a USB Plug-In

CVE-2026-98232, dubbed usb2shell, is a Linux kernel vulnerability triggered when the system automatically scans a newly connected USB storage device. In the SCSI core’s `scsi_cdl_enable()` function, introduced with Command Duration Limits support in Linux 6.5, lengths supplied by a device were not validated before being used with a 64-byte stack buffer. A malicious device can exploit this to read up to 64 bytes of kernel stack data and clear one byte at a chosen position. The flaw requires physical access to a USB port, but no login, user action, or disk mount: it can run before the operating system presents the device to userspace. Linux 6.5 and later are affected when USB mass-storage support is available and the kernel lacks the fix.

Researchers demonstrated root command execution against a stock Debian 6.12.22 kernel using a Cynthion USB device. They used the stack leak to defeat KASLR, then chained the one-byte overwrite into a controlled kernel write; attempts are probabilistic but failed attempts did not crash the system. Android kernels may expose stack data too, though bounds checks in the tested builds prevented the overwrite from escaping the buffer. Fixed releases include 6.6.158, 6.12.112, 6.18.54, 7.2.8, and 7.3. The recommended response is to update or backport the upstream validation fix. Where that is not immediately possible, disable or avoid loading USB-storage and UAS drivers where unnecessary, or restrict USB devices with allow-listing. The vulnerability was privately reported in September 2026 and publicly disclosed on November 30.

Read on usb2shell.com175 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.