Contact us
← ArticleWhat to do

CVEHit Business Advisory by IntegrityLab.ai

What to do

USB2Shell: USB may take over Linux

Do Now

Timing: Act this week if an untrusted person can attach USB storage to an affected system, physically or as a virtual device to a guest. Check scope and timing on the same system.

  • Treat systems where you cannot tell who can attach USB storage as exposed, since Red Hat says an attacker needs physical access or the ability to attach virtual devices to a guest. Where a fixed kernel exists, update them first, along with systems where untrusted people can attach USB storage.

Do Next

List Linux systems that run an affected upstream or distribution kernel without the fix, including Red Hat, Ubuntu and Debian kernels that their vendor lists as affected. For each group, answer the deciding question: can an untrusted person attach USB storage, either physically or as a virtual device to a guest?

For affected systems where the answer is yes or not sure, act this week: install the fixed kernel for the branch or distribution and reboot, or, on an upstream branch with no listed fix such as 7.1, move to a fixed upstream branch or a distribution kernel that carries the fix. Where Red Hat lists no fixed build yet (OpenShift rhel-coreos-9), limit who can attach USB storage or virtual devices to those nodes and watch the Red Hat CVE page until one is available. Where the answer is no, make the same update or move, with a reboot, in your normal update cycle; on OpenShift rhel-coreos-9, keep the USB limit and keep watching Red Hat until a fixed build is listed.

Until each system runs a fixed kernel, limit who can attach USB storage, physically or as virtual devices to guests. The Hacker News also suggests stopping the usb-storage and uas kernel modules (the drivers for USB storage devices) from loading where USB storage is not needed, and USB allow-listing so only approved devices can connect. After each reboot, confirm the running kernel matches a fixed build.

Proof the update is done

After reboot, check that the running kernel (uname -r) is at or above the fixed release for your branch.

After moving to a fixed kernel and rebooting, check that the running kernel matches a fixed build.

After reboot, check that the running kernel matches or is newer than the build in the advisory for your stream.

After reboot, check that the running kernel matches or is newer than the fixed build for your release.

After reboot, check that the running kernel matches or is newer than the fixed build.

After reboot, check that the running kernel matches or is newer than the fixed build for your suite.

Records that show who can attach USB storage

Use physical access records and USB device policies to check who can attach storage through a physical port. Review hypervisor permissions for who can attach USB storage to a guest as a virtual device.

Where to look first

Start with the systems that matched every condition, and keep their logs from the exposure period.

What to recheck

Check the CVE record, Red Hat CVE for updates. Note the date of each check.

← Back to advisory

How can we help?

Initial enquiries only. Omit passwords, access tokens, security reports or other sensitive information. We’ll arrange secure sharing if needed.

Privacy & data handling ↗. Submitting this form does not authorise an assessment.

Checking enquiry availability…