CVE-2015-7504: Buffer Overflow
Heap-based buffer overflow in the pcnetreceive function in hw/net/pcnet.c in QEMU allows guest OS administrators to cause a denial of service (instance crash) or possibly execute arbitrary code via a series of packets in loopback mode.
Other sources
Qemu emulator built with the AMD PC-Net II Ethernet Controller support is vulnerable to a heap buffer overflow flaw. While receiving packets in the loopback mode, it appends CRC code to the receive buffer. If the data size given is same as the receive buffer size, the appended CRC code overwrites 4 bytes beyond this 's->buffer' array.
A privileged(CAPSYSRAWIO) user inside guest could use this flaw to crash the Qemu instance resulting in DoS or potentially execute arbitrary code with privileges of the Qemu process on the host.
Upstream fix: ------------- -> http://git.qemu.org/?p=qemu.git;a=commit;h=837f21aacf5a714c23ddaadbbc5212f9
Reference: ---------- -> http://www.openwall.com/lists/oss-security/2015/11/30/2 -> http://www.openwall.com/lists/oss-security/2015/11/30/5
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/qemuto a version that resolves this vulnerability.Fixed in 1.1.2+dfsg-6a+deb7u12Fixed in 1:2.1+dfsg-12+deb8u5aFixed in 1:2.5+dfsg-1 - Upgrade
Upgrade
debian/qemu-kvmto a version that resolves this vulnerability.Fixed in 1.1.2+dfsg-6+deb7u12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 837f21aacf5a714c23ddaadbbc5212f9
Event History
Frequently Asked Questions
What is the severity of CVE-2015-7504?
CVE-2015-7504 has a high severity due to its potential for causing denial of service and executing arbitrary code.
How do I fix CVE-2015-7504?
To fix CVE-2015-7504, upgrade QEMU to versions later than 2.4.1 and include all security patches.
What causes CVE-2015-7504?
CVE-2015-7504 is caused by a heap-based buffer overflow in the pcnet_receive function within QEMU.
Which systems are affected by CVE-2015-7504?
CVE-2015-7504 affects QEMU versions up to 2.4.1 and specific release candidates of version 2.5.0.
Can CVE-2015-7504 lead to remote code execution?
Yes, CVE-2015-7504 can potentially allow an attacker to execute arbitrary code through specially crafted packets.