CVE Vulnerabilities

CVE-2020-14364

Out-of-bounds Read

Published: Aug 31, 2020 | Modified: Nov 21, 2024
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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
QemuQemu*5.2.0 (excluding)
Advanced Virtualization for RHEL 8.1.1RedHatvirt:8.1-8010120200911011910.5db1954d*
Advanced Virtualization for RHEL 8.1.1RedHatvirt-devel:8.1-8010120200911011910.5db1954d*
Advanced Virtualization for RHEL 8.2.1RedHatvirt:8.2-8020120200909235106.863bb0db*
Advanced Virtualization for RHEL 8.2.1RedHatvirt-devel:8.2-8020120200909235106.863bb0db*
Red Hat Enterprise Linux 6RedHatqemu-kvm-2:0.12.1.2-2.506.el6_10.8*
Red Hat Enterprise Linux 6.5 Advanced Update SupportRedHatqemu-kvm-2:0.12.1.2-2.415.el6_5.21*
Red Hat Enterprise Linux 6.6 Advanced Update SupportRedHatqemu-kvm-2:0.12.1.2-2.448.el6_6.9*
Red Hat Enterprise Linux 7RedHatqemu-kvm-ma-10:2.12.0-48.el7_9.1*
Red Hat Enterprise Linux 7RedHatqemu-kvm-10:1.5.3-175.el7_9.1*
Red Hat Enterprise Linux 7.2 Advanced Update SupportRedHatqemu-kvm-10:1.5.3-105.el7_2.20*
Red Hat Enterprise Linux 7.3 Advanced Update SupportRedHatqemu-kvm-10:1.5.3-126.el7_3.18*
Red Hat Enterprise Linux 7.3 Telco Extended Update SupportRedHatqemu-kvm-10:1.5.3-126.el7_3.18*
Red Hat Enterprise Linux 7.3 Update Services for SAP SolutionsRedHatqemu-kvm-10:1.5.3-126.el7_3.18*
Red Hat Enterprise Linux 7.4 Advanced Update SupportRedHatqemu-kvm-10:1.5.3-141.el7_4.11*
Red Hat Enterprise Linux 7.4 Telco Extended Update SupportRedHatqemu-kvm-10:1.5.3-141.el7_4.11*
Red Hat Enterprise Linux 7.4 Update Services for SAP SolutionsRedHatqemu-kvm-10:1.5.3-141.el7_4.11*
Red Hat Enterprise Linux 7.6 Extended Update SupportRedHatqemu-kvm-10:1.5.3-160.el7_6.8*
Red Hat Enterprise Linux 7.6 Extended Update SupportRedHatqemu-kvm-ma-10:2.12.0-18.el7_6.7*
Red Hat Enterprise Linux 7.7 Extended Update SupportRedHatqemu-kvm-ma-10:2.12.0-33.el7_7.4*
Red Hat Enterprise Linux 7.7 Extended Update SupportRedHatqemu-kvm-10:1.5.3-167.el7_7.7*
Red Hat Enterprise Linux 8RedHatvirt-devel:rhel-8020020200909224913.4cda2c84*
Red Hat Enterprise Linux 8RedHatvirt:rhel-8020020200909224913.4cda2c84*
Red Hat Enterprise Linux 8.0 Update Services for SAP SolutionsRedHatvirt:rhel-8000020200910175113.f8e95b4e*
Red Hat Enterprise Linux 8.1 Extended Update SupportRedHatvirt-devel:rhel-8010020200917181121.c27ad7f8*
Red Hat Enterprise Linux 8.1 Extended Update SupportRedHatvirt:rhel-8010020200917181121.c27ad7f8*
Red Hat OpenStack Platform 10.0 (Newton)RedHatqemu-kvm-rhev-10:2.12.0-33.el7_7.12*
Red Hat OpenStack Platform 13.0 (Queens)RedHatqemu-kvm-rhev-10:2.12.0-48.el7_9.1*
Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUSRedHatqemu-kvm-rhev-10:2.12.0-18.el7_6.12*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatqemu-kvm-rhev-10:2.12.0-48.el7_9.1*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7RedHatredhat-virtualization-host-0:4.3.11-20200922.0.el7_9*
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8RedHatredhat-virtualization-host-0:4.4.2-20200930.0.el8_2*
Red Hat Virtualization Engine 4.3RedHatqemu-kvm-rhev-10:2.12.0-48.el7_9.1*
QemuUbuntubionic*
QemuUbuntudevel*
QemuUbuntuesm-infra-legacy/trusty*
QemuUbuntuesm-infra/bionic*
QemuUbuntuesm-infra/focal*
QemuUbuntuesm-infra/xenial*
QemuUbuntufocal*
QemuUbuntugroovy*
QemuUbuntuhirsute*
QemuUbuntutrusty*
QemuUbuntutrusty/esm*
QemuUbuntuxenial*
Qemu-kvmUbuntuprecise/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