CVE Vulnerabilities

CVE-2020-14364

Out-of-bounds Read

Published: Aug 31, 2020 | Modified: Nov 07, 2023
CVSS 3.x
5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
5 IMPORTANT
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L
Ubuntu
MEDIUM

An out-of-bounds read/write access flaw was found in the USB emulator of the QEMU in versions before 5.2.0. This issue occurs while processing USB packets from a guest when USBDevice setup_len exceeds its data_buf[4096] in the do_token_in, do_token_out routines. This flaw allows a guest user to crash the QEMU process, resulting in a denial of service, or the potential execution of arbitrary code with the privileges of the QEMU process on the host.

Weakness

The product reads data past the end, or before the beginning, of the intended buffer.

Affected Software

Name Vendor Start Version End Version
Qemu Qemu * 5.2.0 (excluding)
Advanced Virtualization for RHEL 8.1.1 RedHat virt:8.1-8010120200911011910.5db1954d *
Advanced Virtualization for RHEL 8.1.1 RedHat virt-devel:8.1-8010120200911011910.5db1954d *
Advanced Virtualization for RHEL 8.2.1 RedHat virt:8.2-8020120200909235106.863bb0db *
Advanced Virtualization for RHEL 8.2.1 RedHat virt-devel:8.2-8020120200909235106.863bb0db *
Red Hat Enterprise Linux 6 RedHat qemu-kvm-2:0.12.1.2-2.506.el6_10.8 *
Red Hat Enterprise Linux 6.5 Advanced Update Support RedHat qemu-kvm-2:0.12.1.2-2.415.el6_5.21 *
Red Hat Enterprise Linux 6.6 Advanced Update Support RedHat qemu-kvm-2:0.12.1.2-2.448.el6_6.9 *
Red Hat Enterprise Linux 7 RedHat qemu-kvm-ma-10:2.12.0-48.el7_9.1 *
Red Hat Enterprise Linux 7 RedHat qemu-kvm-10:1.5.3-175.el7_9.1 *
Red Hat Enterprise Linux 7.2 Advanced Update Support RedHat qemu-kvm-10:1.5.3-105.el7_2.20 *
Red Hat Enterprise Linux 7.3 Advanced Update Support RedHat qemu-kvm-10:1.5.3-126.el7_3.18 *
Red Hat Enterprise Linux 7.3 Telco Extended Update Support RedHat qemu-kvm-10:1.5.3-126.el7_3.18 *
Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions RedHat qemu-kvm-10:1.5.3-126.el7_3.18 *
Red Hat Enterprise Linux 7.4 Advanced Update Support RedHat qemu-kvm-10:1.5.3-141.el7_4.11 *
Red Hat Enterprise Linux 7.4 Telco Extended Update Support RedHat qemu-kvm-10:1.5.3-141.el7_4.11 *
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions RedHat qemu-kvm-10:1.5.3-141.el7_4.11 *
Red Hat Enterprise Linux 7.6 Extended Update Support RedHat qemu-kvm-10:1.5.3-160.el7_6.8 *
Red Hat Enterprise Linux 7.6 Extended Update Support RedHat qemu-kvm-ma-10:2.12.0-18.el7_6.7 *
Red Hat Enterprise Linux 7.7 Extended Update Support RedHat qemu-kvm-ma-10:2.12.0-33.el7_7.4 *
Red Hat Enterprise Linux 7.7 Extended Update Support RedHat qemu-kvm-10:1.5.3-167.el7_7.7 *
Red Hat Enterprise Linux 8 RedHat virt-devel:rhel-8020020200909224913.4cda2c84 *
Red Hat Enterprise Linux 8 RedHat virt:rhel-8020020200909224913.4cda2c84 *
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions RedHat virt:rhel-8000020200910175113.f8e95b4e *
Red Hat Enterprise Linux 8.1 Extended Update Support RedHat virt-devel:rhel-8010020200917181121.c27ad7f8 *
Red Hat Enterprise Linux 8.1 Extended Update Support RedHat virt:rhel-8010020200917181121.c27ad7f8 *
Red Hat OpenStack Platform 10.0 (Newton) RedHat qemu-kvm-rhev-10:2.12.0-33.el7_7.12 *
Red Hat OpenStack Platform 13.0 (Queens) RedHat qemu-kvm-rhev-10:2.12.0-48.el7_9.1 *
Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUS RedHat qemu-kvm-rhev-10:2.12.0-18.el7_6.12 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat qemu-kvm-rhev-10:2.12.0-48.el7_9.1 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat redhat-virtualization-host-0:4.3.11-20200922.0.el7_9 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 RedHat redhat-virtualization-host-0:4.4.2-20200930.0.el8_2 *
Red Hat Virtualization Engine 4.3 RedHat qemu-kvm-rhev-10:2.12.0-48.el7_9.1 *
Qemu Ubuntu bionic *
Qemu Ubuntu devel *
Qemu Ubuntu focal *
Qemu Ubuntu groovy *
Qemu Ubuntu hirsute *
Qemu Ubuntu trusty *
Qemu Ubuntu trusty/esm *
Qemu Ubuntu xenial *
Qemu-kvm Ubuntu precise/esm *

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.

References