CVE-2020-27661
NixOS vulnerability analysis and mitigation

Overview

A divide-by-zero vulnerability (CVE-2020-27661) was discovered in the dwc2handlepacket function within hw/usb/hcd-dwc2.c of QEMU's hcd-dwc2 USB host controller emulation. The vulnerability was identified in QEMU versions through 5.1.1, with the issue being reported on October 22, 2020. The flaw affects the dwc-hsotg (dwc2) USB host controller emulation component (RedHat Bug, NVD).

Technical details

The vulnerability occurs when HCCHAR_MPS is read from a device register and subsequently used as a divisor without proper sanity checks. The issue has been assigned a CVSS v3.1 Base Score of 6.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H. The vulnerability is classified under CWE-369 (Divide By Zero) (NVD).

Impact

When successfully exploited, this vulnerability could allow a malicious or buggy guest to crash the QEMU process on the host, resulting in a denial of service (DoS) condition (NetApp Advisory, NVD).

Mitigation and workarounds

A fix was implemented by adding a check for the mps value to prevent potential divide-by-zero operations. The patch was submitted and merged upstream, with the fix being included in versions after 5.1.1. The fix involves validating the HCCHAR_MPS value before its use as a divisor (QEMU Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management