← Back to context

Comment by mrob

1 month ago

>7 "assume a malicious filesystem image"

If you ever used a USB storage device you're vulnerable to this one. Not even a strict chain of custody guarantees safety, because USB devices are often powered by exploitable programmable microcontrollers. If a known good USB device can be converted to a malicious USB device by unprivileged software, the malicious filesystem exploit becomes a local privilege escalation. It works better than tampering with the files on the filesystem because it escapes signature checks and gets you directly into kernel mode.

Do containers and VMs provide any defense against this or does the USB handshake happen with or involve the host OS?

  • > ... or does the USB handshake happen with or involve the host OS?

    It depends on how your host is configured: just as you can do GPU-passthrough, you can passthrough a single USB device or passthrough an entire USB controller to a VM.