usb2shell: Root on Linux from a USB Plug-In
TL;DR:
When the device is unplugged, the kernel runs a command supplied by the device, as root.
Longer Read:
When the kernel scans a new SCSI device that says it is an ATA device with CDL support, it calls scsi_cdl_enable() . So a device can make the kernel send it up to 64 bytes of kernel stack, and clear one stack byte at an offset it picks. The PoC we built runs on a Cynthion USB device plugged into a PC with a stock Debian 6.12.22+bpo-amd64 kernel.
Related Skills:
Systems Programming
💬 0 comments