I saw a report about a USB vulnerability that can grant root access on unpatched Linux systems. Does the device need to run a file, and what should administrators do about it?
Can a USB device really give someone root on Linux?
Answers
A USB exploit doesn't necessarily need to run a file from a mounted drive. The kernel talks to a device and processes the information it presents when it's connected, so a vulnerability in that handling could be triggered before anyone opens a file.
The supplied report doesn't identify the affected component or patch, though. Check your distribution's security advisories and apply the relevant updates rather than assuming every Linux system is affected.
Reply to this answer
Physical access is the big condition here. That's still worth taking seriously on shared machines, kiosks, and systems where someone can reach a USB port. Keep systems patched and restrict who can connect devices where that risk matters.
Reply to this answer
Disabling the USB storage kernel module is a common hardening measure if a machine doesn't need USB drives. It can reduce exposure to storage devices, but don't assume it fixes this particular issue without checking which USB component is vulnerable.
Reply to this answer
There are a few different USB threats getting mixed together. A device that pretends to be a keyboard can type commands into an unlocked session. A kernel vulnerability is different and may not require an interactive session or an executable file on the device.
Reply to this answer
Add your answer
Answers are reviewed before publication.
c.763~zordeli:
And disabling automatic mounting is a separate control. It won't necessarily stop the kernel from communicating with a device when it's plugged in.