USB2Shell: Linux kernel flaw lets a crafted USB device run commands as root
Researchers at Drivesec showed that a crafted USB device can make an unpatched Linux machine run an attacker's command as root, with no login or user action. The kernel fix was released in September.

Key points
- The flaw, named USB2Shell, sits in the Linux kernel and was demonstrated by researchers at Drivesec.
- A crafted USB device can trigger a command running as root on an unpatched machine.
- No login, drive mounting or click is needed, because the kernel scans USB storage devices as soon as they are plugged in, before anyone signs in.
- The fix was made in the kernel in September.
Researchers at Drivesec have shown that a specially crafted USB device can cause an unpatched Linux machine to run an attacker's command with root privileges. The issue, named USB2Shell, lies in the Linux kernel itself.
What the researchers found
The kernel scans a USB storage device the moment it is plugged in, before any user has signed in. According to the researchers, this early step is enough for the attack: nobody needs to log in, mount a drive or click anything. The result is a command executed as root, the highest privilege level on the system.
The flaw was fixed in the kernel in September. The source excerpt does not give a CVE identifier, the affected kernel versions or the distributions concerned, so teams should confirm these details with their Linux vendors.
Why it matters for regulated institutions
The attack requires physical access to a port, so the exposure is greatest where Linux systems sit in places that are not constantly supervised, such as branch equipment, kiosks, shared workspaces, data-centre floors and operational environments. Because the trigger happens before login, a locked screen or a logged-out session does not by itself reduce the risk. Patching and control of physical ports are the practical defences.
Recommended next steps
Confirm with your Linux distribution vendors which kernel builds include the September fix, and schedule the update through normal change management, starting with systems that are physically reachable.
What to do now
- Ask your Linux vendors which kernel builds include the September fix for USB2Shell and obtain the CVE reference, if one exists.
- Inventory Linux systems that are physically reachable, such as branch devices, kiosks and shared-area machines, and patch them first.
- Restrict or disable unused USB ports and apply device-control policies on Linux endpoints and servers where business needs allow.
- Check physical access controls and tamper protection for server rooms, cabinets and unattended equipment.
- Record the patch status and any exceptions in your vulnerability management process, with compensating controls for systems that cannot be updated promptly.
How useful was this story?
0.0 out of 5 · 0 ratings
Related frameworks
Our consultants can assess your exposure and map the change to your controls and evidence.
