CVE-2020-27661
QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 12, 2020
Updated · June 28, 2026
Description
A divide-by-zero flaw was found in QEMU in the dwc-hsotg (dwc2) USB host controller emulation. More specifically, HCCHAR_MPS was read from a device register and later used as a divisor without performing a sanity check. This flaw allows a malicious or buggy guest to crash the QEMU process on the host, resulting in a denial of service.
Statement
This flaw did not affect the following versions of QEMU as they did not include support for dwc2 USB host controller emulation:
qemu-kvm-maas shipped with Red Hat Enterprise Linux 7.qemu-kvm-rhevas shipped with Red Hat Virtualization and Red Hat OpenStack.qemu-kvmas shipped with Red Hat Enterprise Linux 6, 7, 8, and RHEL Advanced Virtualization.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 3.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
CWE-369 · Divide By Zero