CVE-2020-27661
published 2021-06-02CVE-2020-27661: A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use…
PriorityP423medium6.5CVSS 3.1
AVLACLPRLUINSCCNINAH
EPSS
0.31%
23.7th percentile
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | qemu | < qemu 1:5.2+dfsg-1 (bookworm) | qemu 1:5.2+dfsg-1 (bookworm) |
| msrc | cm1_qemu-kvm_4.2.0-33_on_cbl_mariner_1.0 | — | — |
| qemu | qemu | <= 5.1.1 | — |
| qemu | qemu | >= 0 < 1:5.2+dfsg-1 | 1:5.2+dfsg-1 |
| qemu | qemu | >= 0 < 1:5.2+dfsg-1 | 1:5.2+dfsg-1 |
| qemu | qemu | >= 0 < 1:5.2+dfsg-1 | 1:5.2+dfsg-1 |
| qemu | qemu | >= 0 < 1:5.2+dfsg-1 | 1:5.2+dfsg-1 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
nvdv2.02.1LOWAV:L/AC:L/Au:N/C:N/I:N/A:P
osv6.5MEDIUM
vendor_debian6.5MEDIUM
vendor_msrc6.5MEDIUM
vendor_redhat6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on th
vendor_msrc·2021-06-08·CVSS 6.5
CVE-2020-27661 [MEDIUM] CWE-369 A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on th
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host resulting in a denial of service.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional pr
Red Hat
QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
vendor_redhat·2020-10-12·CVSS 6.5
CVE-2020-27661 [MEDIUM] CWE-369 QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service.
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-m
Debian
CVE-2020-27661: qemu - A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in t...
vendor_debian·2020·CVSS 6.5
CVE-2020-27661 [MEDIUM] CVE-2020-27661: qemu - A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in t...
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service.
Scope: local
bookworm: resolved (fixed in 1:5.2+dfsg-1)
bullseye: resolved (fixed in 1:5.2+dfsg-1)
forky: resolved (fixed in 1:5.2+dfsg-1)
sid: resolved (fixed in 1:5.2+dfsg-1)
trixie: resolved (fixed in 1:5.2+dfsg-1)
GHSA
GHSA-pwg2-p5wp-g395: A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2
ghsa_unreviewed·2022-05-24
CVE-2020-27661 [MEDIUM] CWE-369 GHSA-pwg2-p5wp-g395: A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service.
OSV
CVE-2020-27661: A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2
osv·2021-06-02·CVSS 6.5
CVE-2020-27661 [MEDIUM] CVE-2020-27661: A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2
A divide-by-zero issue was found in dwc2_handle_packet in hw/usb/hcd-dwc2.c in the hcd-dwc2 USB host controller emulation of QEMU. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-27661 qemu: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c [fedora-all]
bugzilla·2020-10-22·CVSS 6.5
CVE-2020-27661 [MEDIUM] CVE-2020-27661 qemu: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c [fedora-all]
CVE-2020-27661 qemu: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple su
Bugzilla
CVE-2020-27661 QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
bugzilla·2020-10-22·CVSS 6.5
CVE-2020-27661 [MEDIUM] CVE-2020-27661 QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
CVE-2020-27661 QEMU: divide by zero in dwc2_handle_packet() in hw/usb/hcd-dwc2.c
A divide-by-zero issue 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 divisor without performing any sanity check. This could allow a malicious/buggy guest to crash the QEMU process on the host, resulting in a denial of service.
Upstream fix:
https://lists.nongnu.org/archive/html/qemu-devel/2020-10/msg04263.html
Discussion:
Created qemu tracking bugs for this issue:
Affects: fedora-all [bug 1890654]
---
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-ma` as shipped with Red Hat Enterprise Linux 7.
https://bugzilla.redhat.com/show_bug.cgi?id=1890653https://git.qemu.org/?p=qemu.git%3Ba=commit%3Bh=bea2a9e3e00b275dc40cfa09c760c715b8753e03https://lists.nongnu.org/archive/html/qemu-devel/2020-10/msg04263.htmlhttps://security.netapp.com/advisory/ntap-20210720-0010/https://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg1770368.htmlhttps://bugzilla.redhat.com/show_bug.cgi?id=1890653https://git.qemu.org/?p=qemu.git%3Ba=commit%3Bh=bea2a9e3e00b275dc40cfa09c760c715b8753e03https://lists.nongnu.org/archive/html/qemu-devel/2020-10/msg04263.htmlhttps://security.netapp.com/advisory/ntap-20210720-0010/https://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg1770368.html
2021-06-02
Published