CVE-2020-8608: Buffer Overflow
A out-of-bounds heap buffer access issue was found in the SLiRP networking implementation of the QEMU emulator. It occurs in tcpemu() routine while emulating IRC and other protocols due to unsafe usage of snprintf(3) function.
A user/process could use this flaw to crash the Qemu process on the host resulting in DoS or potentially execute arbitrary code with privileges of the QEMU process on the host. Also with SELinux and sVirt access control in place, malicious activity is restricted.
Upstream patch: --------------- -> https://gitlab.freedesktop.org/slirp/libslirp/commit/68ccb8021a838066f0951d4b2817eb6b6f10a843 -> https://gitlab.freedesktop.org/slirp/libslirp/commit/30648c03b27fb8d9611b723184216cd3174b6775
Reference: ---------- -> https://www.openwall.com/lists/oss-security/2020/02/06/2
Other sources
An out-of-bounds heap buffer access flaw was found in the SLiRP networking implementation of the QEMU emulator. This flaw occurs in tcpemu() routine while emulating IRC and other protocols due to unsafe usage of the snprintf(3) function. A user or process could use this flaw to crash the QEMU process on the host, resulting in a denial of service or potential execution of arbitrary code with privileges of the QEMU process on the host.
In libslirp 4.1.0, as used in QEMU 4.2.0, tcpsubr.c misuses snprintf return values, leading to a buffer overflow in later code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/qemu-kvmto a version that resolves this vulnerability.Fixed in 2:0.12.1.2-2.506.el6_10.7 - Upgrade
Upgrade
redhat/qemu-kvmto a version that resolves this vulnerability.Fixed in 10:1.5.3-173.el7_8.1 - Upgrade
Upgrade
redhat/qemu-kvm-mato a version that resolves this vulnerability.Fixed in 10:2.12.0-44.el7_8.1 - Upgrade
Upgrade
redhat/qemu-kvmto a version that resolves this vulnerability.Fixed in 10:1.5.3-160.el7_6.7 - Upgrade
Upgrade
redhat/qemu-kvmto a version that resolves this vulnerability.Fixed in 10:1.5.3-167.el7_7.6 - Upgrade
Upgrade
redhat/qemu-kvm-mato a version that resolves this vulnerability.Fixed in 10:2.12.0-33.el7_7.3 - Upgrade
Upgrade
redhat/slirp4netnsto a version that resolves this vulnerability.Fixed in 0:0.3.0-8.el7_7 - Upgrade
Upgrade
redhat/atomic-enterprise-service-catalogto a version that resolves this vulnerability.Fixed in 1:4.3.3-202002170501.git.1.f30799e.el7 - Upgrade
Upgrade
redhat/atomic-openshift-service-idlerto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002170501.git.1.4feff9c.el7 - Upgrade
Upgrade
redhat/cri-oto a version that resolves this vulnerability.Fixed in 0:1.16.3-20.dev.rhaos4.3.git11c04e3.el7 - Upgrade
Upgrade
redhat/cri-toolsto a version that resolves this vulnerability.Fixed in 0:1.17.0-1.el8 - Upgrade
Upgrade
redhat/dracutto a version that resolves this vulnerability.Fixed in 0:049-64.git20200123.el8 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 0:2.204.1.1581950993-1.el7 - Upgrade
Upgrade
redhat/jenkinsto a version that resolves this vulnerability.Fixed in 2-plugins-0:4.3.1581956184-1.el7 - Upgrade
Upgrade
redhat/machine-config-daemonto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002170501.git.1.6b1b155.el8 - Upgrade
Upgrade
redhat/openshiftto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002140552.git.0.e38059c.el7 - Upgrade
Upgrade
redhat/openshift-ansibleto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002142331.git.173.bb0b5a1.el7 - Upgrade
Upgrade
redhat/openshift-clientsto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002140552.git.1.ff73b47.el7 - Upgrade
Upgrade
redhat/openshift-kuryrto a version that resolves this vulnerability.Fixed in 0:4.3.3-202002170501.git.1.3b8b4cc.el8 - Upgrade
Upgrade
redhat/slirp4netnsto a version that resolves this vulnerability.Fixed in 0:0.4.2-4.git21fdece.el8 - Upgrade
Upgrade
redhat/toolboxto a version that resolves this vulnerability.Fixed in 0:0.0.6-1.rhaos4.3.el8 - Upgrade
Upgrade
redhat/qemu-kvm-rhevto a version that resolves this vulnerability.Fixed in 10:2.12.0-33.el7_7.10 - Upgrade
Upgrade
redhat/qemu-kvm-rhevto a version that resolves this vulnerability.Fixed in 10:2.12.0-44.el7_8.1 - Upgrade
Upgrade
redhat/qemu-kvm-rhevto a version that resolves this vulnerability.Fixed in 10:2.12.0-18.el7_6.11 - Upgrade
Upgrade
redhat/libslirpto a version that resolves this vulnerability.Fixed in 4.3.0 - Upgrade
Upgrade
debian/libslirpto a version that resolves this vulnerability.Fixed in 4.4.0-1+deb11u2Fixed in 4.7.0-1Fixed in 4.8.0-1+deb13u1Fixed in 4.9.3-1 - Upgrade
Upgrade
debian/qemuto a version that resolves this vulnerability.Fixed in 1:5.2+dfsg-11+deb11u3Fixed in 1:5.2+dfsg-11+deb11u5Fixed in 1:7.2+dfsg-7+deb12u18Fixed in 1:7.2+dfsg-7+deb12u15Fixed in 1:10.0.11+ds-0+deb13u1Fixed in 1:10.0.2+ds-2+deb13u1Fixed in 1:11.0.2+ds-2 - Upgrade
Upgrade
debian/slirpto a version that resolves this vulnerability.Fixed in 1:1.0.17-11Fixed in 1:1.0.17-12 - Upgrade
Upgrade
debian/slirp4netnsto a version that resolves this vulnerability.Fixed in 1.0.1-2Fixed in 1.2.0-1Fixed in 1.2.1-1.1Fixed in 1.3.3-1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2020-8608?
CVE-2020-8608 is classified as a medium severity vulnerability due to its potential to crash the QEMU process.
How do I fix CVE-2020-8608?
To fix CVE-2020-8608, you need to upgrade to a patched version of the QEMU package specified in the security advisories.
What is affected by CVE-2020-8608?
CVE-2020-8608 affects the SLiRP networking implementation in various versions of QEMU and related packages.
Can CVE-2020-8608 be exploited remotely?
Yes, CVE-2020-8608 can be exploited by an attacker who can send specially crafted data to the emulated network protocols.
What are the consequences of CVE-2020-8608 exploitation?
Exploitation of CVE-2020-8608 could lead to a denial of service by crashing the QEMU process.