CVE-2020-13765: Medium severity Qemu Qemu vulnerability
An out-of-bound write access flaw was found in the way QEMU loads ROM contents at boot time. This flaw occurs in the romcopy() routine while loading the contents of a 32-bit -kernel image into memory. Running an untrusted -kernel image may load contents at arbitrary memory locations, potentially leading to code execution with the privileges of the QEMU process.
Other sources
An out-of-bound write access issue was found in the way QEMU loads ROM contents at boot time. It occurs in romcopy() routine while loading contents of a 32-bit -kernel image into memory. Running an untrusted -kernel image may load contents at arbitrary memory locations, potentially leading to code execution with the privileges of the QEMU process.
Upstream patch: --------------- -> https://git.qemu.org/?p=qemu.git;a=commitdiff;h=e423455c4f23a1a828901c78fe6d03b7dde79319
Reference: ---------- -> https://bugs.launchpad.net/qemu/+bug/1844635 -> https://www.openwall.com/lists/oss-security/2020/06/03/6
— Red Hat
romcopy() in hw/core/loader.c in QEMU 4.0 and 4.1.0 does not validate the relationship between two addresses, which allows attackers to trigger an invalid memory copy operation.
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 10:1.5.3-175.el7_9.3 - Upgrade
Upgrade
redhat/QEMUto a version that resolves this vulnerability.Fixed in 4.2.0 - Upgrade
Upgrade
alpine/qemuto a version that resolves this vulnerability.Fixed in 4.2.0-r0 - Upgrade
Upgrade
debian/qemuto a version that resolves this vulnerability.Fixed in 1:2.1+dfsg-12+deb8u15Fixed in 1:2.8+dfsg-6+deb9u10Fixed in 1:3.1+dfsg-8+deb10u6Fixed in 1:4.2-1
Event History
Frequently Asked Questions
What is CVE-2020-13765?
CVE-2020-13765 is a vulnerability that allows an out-of-bound write access in QEMU while loading ROM contents at boot time.
What is the severity of CVE-2020-13765?
CVE-2020-13765 has a severity rating of 5.6, which is considered medium.
Which software versions are affected by CVE-2020-13765?
QEMU versions 4.0 and 4.1.0 are affected by CVE-2020-13765.
How can I fix CVE-2020-13765?
To fix CVE-2020-13765, update QEMU to version 4.2.0.
Where can I find more information about CVE-2020-13765?
You can find more information about CVE-2020-13765 in the references provided: [link1], [link2], [link3].