Out-of-bounds Read/Write in QEMU USB Emulator (CVE-2020-14364)
CVE-2020-14364 is an out-of-bounds read/write vulnerability in the USB emulator component of QEMU prior to version 5.2.0. The flaw exists in the handling of USB packets from a guest, specifically when the USBDevice 'setup_len' exceeds the allocated 'data_buf[4096]' in the do_token_in and do_token_out routines. This can be triggered by a malicious guest, leading to memory corruption in the QEMU process on the host.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A malicious guest can exploit this vulnerability to crash the QEMU process, resulting in a denial of service. More critically, the out-of-bounds access may allow for arbitrary code execution with the privileges of the QEMU process on the host, potentially leading to a full VM escape.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict untrusted guest access and consider disabling USB device emulation for guests. Use strong isolation mechanisms (such as SELinux, AppArmor, or running QEMU in a sandbox) to limit the impact of a potential exploit.
Patch, then assume compromise.
Upgrade QEMU to version 5.2.0 or later, where the vulnerability has been patched. Ensure that all QEMU instances are running the latest security updates.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.