CVE-2019-6778: Buffer Overflow
A heap buffer overflow issue was found in the SLiRP networking implementation of the QEMU emulator. It occurs in tcpemu() routine while emulating Identification protocol and copying message data to a socket buffer.
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.
Upstream patch: --------------- -> https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg03132.html
Reference: ---------- -> https://www.openwall.com/lists/oss-security/2019/01/24/5
Other sources
A heap buffer overflow issue was found in the SLiRP networking implementation of the QEMU emulator. It occurs in tcpemu() routine while emulating the Identification protocol and copying message data to a socket buffer. A user or process could use this flaw to crash the QEMU process on the host resulting in a DoS or potentially executing arbitrary code with privileges of the QEMU process.
In QEMU 3.0.0, tcpemu in slirp/tcpsubr.c has a heap-based buffer overflow.
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.5 - Upgrade
Upgrade
redhat/qemu-kvmto a version that resolves this vulnerability.Fixed in 10:1.5.3-160.el7_6.3 - Upgrade
Upgrade
redhat/qemu-kvm-rhevto a version that resolves this vulnerability.Fixed in 10:2.12.0-33.el7 - Upgrade
Upgrade
redhat/qemu-kvm-rhevto a version that resolves this vulnerability.Fixed in 10:2.12.0-18.el7_6.7 - 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.7+ds-0+deb13u1Fixed in 1:10.0.2+ds-2+deb13u1Fixed in 1:10.2.1+ds-1 - 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-2019-6778?
CVE-2019-6778 has been rated as critical due to the potential for a heap buffer overflow leading to a crash of the QEMU process.
How do I fix CVE-2019-6778?
To mitigate CVE-2019-6778, upgrade QEMU to versions 2:0.12.1.2-2.506.el6_10.5 or higher for RHEL systems or the specific patched versions for Debian and Ubuntu as stated in the vulnerability advisory.
What systems are affected by CVE-2019-6778?
CVE-2019-6778 affects various versions of QEMU and QEMU KVM across multiple distributions including Red Hat, Debian, and Ubuntu.
What could happen if CVE-2019-6778 is exploited?
Exploitation of CVE-2019-6778 could allow an attacker to crash the QEMU process, leading to service disruption on the host.
Is there a workaround for CVE-2019-6778?
There is no official workaround for CVE-2019-6778; the only solution is to upgrade to a fixed version of QEMU.