CVE-2023-4135: QEMU NVMe Out-Of-Bounds Read Information Disclosure Vulnerability
A heap out of bounds memory read was found in the virtual nvme device in QEMU. An offset provided by guest is not validated by qemu process before computing a host heap pointer, which is used for copying data back to guest. Arbitrary heap memory relative to an allocated buffer can be disclosed.
ZDI security advisory: https://www.zerodayinitiative.com/advisories/ZDI-CAN-21521
Upstream patch: https://lists.nongnu.org/archive/html/qemu-devel/2023-08/msg00516.html
Other sources
A heap out-of-bounds memory read flaw was found in the virtual nvme device in QEMU. The QEMU process does not validate an offset provided by the guest before computing a host heap pointer, which is used for copying data back to the guest. Arbitrary heap memory relative to an allocated buffer can be disclosed.
— Ubuntu
This vulnerability allows local attackers to disclose sensitive information on affected installations of QEMU. An attacker must first obtain the ability to execute high-privileged code on the target guest system in order to exploit this vulnerability. The specific flaw exists within the NVMe virtual device. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the hypervisor.
— ZDI
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2023-4135?
CVE-2023-4135 is a heap out-of-bounds memory read flaw found in the virtual nvme device in QEMU.
What is the severity of CVE-2023-4135?
CVE-2023-4135 has a severity of medium.
Which software is affected by CVE-2023-4135?
The QEMU QEMU, Fedoraproject Fedora 38, and redhat/qemu-kvm versions up to 8.1.0 are affected by CVE-2023-4135.
How can I fix CVE-2023-4135?
To fix CVE-2023-4135, update to the latest version of QEMU, Fedoraproject Fedora 38, or redhat/qemu-kvm.
What is the Common Weakness Enumeration (CWE) ID of CVE-2023-4135?
The CWE ID of CVE-2023-4135 is 125.