Heap-based buffer overflow in libslirp - CVE-2020-7039

 

Heap-based buffer overflow in libslirp - CVE-2020-7039

Published: February 19, 2020 / Updated: April 28, 2020


Vulnerability identifier: #VU25458
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-7039
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the tcp_emu() function in tcp_subr.c in libslirp. An attacker can issue specially crafted IRC DCC commands in EMU_IRC, trigger heap-based buffer overflow and execute arbitrary code on the target system.


Affected software

libslirp
Debian Linux
Amazon Linux AMI
Arch Linux
Gentoo Linux
Red Hat Enterprise Linux for Power
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
CentOS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Ubuntu
Opensuse
qemu-kvm (Red Hat package)
qemu-kvm-rhev (Red Hat package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
qemu-system-mips (Ubuntu package)
qemu-system-misc (Ubuntu package)
qemu-system-ppc (Ubuntu package)
qemu-system-arm (Ubuntu package)
qemu-system-s390x (Ubuntu package)
qemu-system-sparc (Ubuntu package)
qemu-system-x86 (Ubuntu package)
qemu (Ubuntu package)
qemu-system (Ubuntu package)
qemu-system-aarch64 (Ubuntu package)
qemu-system-common (Ubuntu package)
skopeo (Red Hat package)
slirp4netns (Red Hat package)
ignition (Red Hat package)
slirp (Ubuntu package)
cri-o (Red Hat package)
qemu (Debian package)
qemu-kvm-ma (Red Hat package)
qemu-system-x86-xen (Ubuntu package)
qemu-system-x86-microvm (Ubuntu package)
openshift (Red Hat package)
openshift-clients (Red Hat package)
openshift-ansible (Red Hat package)
machine-config-daemon (Red Hat package)
atomic-openshift-service-idler (Red Hat package)
atomic-enterprise-service-catalog (Red Hat package)
openshift-kuryr (Red Hat package)
openstack-ironic-python-agent (Red Hat package)
qemu-system-xen (Ubuntu package)
rhosp-release (Red Hat package)
Red Hat Virtualization Manager
Red Hat Enterprise Linux Advanced Virtualization
Red Hat OpenStack
Red Hat OpenStack for IBM Power
Red Hat OpenShift Container Platform
Juniper Junos Space

How to mitigate CVE-2020-7039

Install update from vendor's website.

libslirp - update to 4.2.0
qemu-kvm (Red Hat package) - addressed in versions 1.5.3-167.el7_7.6, 1.5.3-173.el7
qemu-kvm-rhev (Red Hat package) - addressed in versions 2.12.0-18.el7_6.11, 2.12.0-33.el7_7.10, 2.12.0-44.el7, 2.12.0-44.el7_8.1
qemu-system-mips (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-misc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-ppc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-arm (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-s390x (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-sparc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-x86 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24
qemu-system (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-aarch64 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
qemu-system-common (Ubuntu package) - update to Ubuntu Pro
skopeo (Red Hat package) - update to 0.1.40-3.rhaos.el8
slirp4netns (Red Hat package) - addressed in versions 0.3.0-8.el7_7, 0.4.2-3.git21fdece.el8
ignition (Red Hat package) - update to 0.34.0-2.rhaos4.3.git92f874c.el8
slirp (Ubuntu package) - addressed in versions 1:1.0.17-8ubuntu16.04.1, 1:1.0.17-8ubuntu18.04.1
cri-o (Red Hat package) - addressed in versions 1.16.2-13.dev.rhaos4.3.gita83f883.el7, 1.16.2-15.dev.rhaos4.3.gita83f883.el8
qemu (Debian package) - addressed in versions 1:2.8+dfsg-6+deb9u9, 1:3.1+dfsg-8+deb10u4
qemu-kvm-ma (Red Hat package) - addressed in versions 2.12.0-33.el7_7.3, 2.12.0-44.el7
qemu-system-x86-xen (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24, 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
qemu-system-x86-microvm (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.30, 1:6.2+dfsg-2ubuntu6.24
Red Hat OpenShift Container Platform - update to 4.3.1
openshift (Red Hat package) - addressed in versions 4.3.1-202001310552.git.0.331f390.el7, 4.3.1-202001310552.git.0.331f390.el8
openshift-clients (Red Hat package) - addressed in versions 4.3.1-202001310552.git.1.075d46a.el7, 4.3.1-202001310552.git.1.075d46a.el8
openshift-ansible (Red Hat package) - update to 4.3.1-202001310552.git.174.dcdb91b.el7
machine-config-daemon (Red Hat package) - update to 4.3.1-202002031701.git.1.0ad9b3b.el8
atomic-openshift-service-idler (Red Hat package) - update to 4.3.1-202002031701.git.1.a23cda8.el7
atomic-enterprise-service-catalog (Red Hat package) - update to 4.3.1-202002031701.git.1.095aaf2.el7
openshift-kuryr (Red Hat package) - update to 4.3.1-202002031701.git.1.cfa4a05.el8
openstack-ironic-python-agent (Red Hat package) - update to 5.0.1-0.20200123140814.025b790.el8ost
qemu-system-xen (Ubuntu package) - addressed in versions 1:8.2.2+ds-0ubuntu1.4, 1:9.0.2+ds-4ubuntu5.1
rhosp-release (Red Hat package) - update to 16.0.0-1.el8ost
Juniper Junos Space - update to 20.3R1

External References

Related Security Bulletins