CVE-2023-4135: QEMU NVMe Out-Of-Bounds Read Information Disclosure Vulnerability

Published Aug 4, 2023
·
Updated

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

10 affected componentsFixes available
redhat/qemu-kvm<8.1.0
8.1.0
ubuntu/qemu<1:8.0.4+dfsg-1ubuntu3.23.10.2
1:8.0.4+dfsg-1ubuntu3.23.10.2
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u71:9.0.2+ds-21:9.1.0+ds-3
Qemu Qemu
Qemu Qemu>=8.0.0<8.1.0
Qemu Qemu=8.1.0-rc0
Qemu Qemu=8.1.0-rc1
Qemu Qemu=8.1.0-rc2
Fedoraproject Fedora=38
Qemu Qemu<2023-08-03

Event History

Aug 4, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·01:19 PM
Data Sourced
via MITRE·01:19 PM
DescriptionSeverityWeakness
Data Sourced
02:15 PM
Description
Jan 12, 2024
Data Sourced
via Launchpad·08:48 PM
Description
Feb 26, 2025
Advisory Published
via ZDI·11:55 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2023-4135?

CVE-2023-4135 has a severity of medium.

3

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.

4

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.

5

What is the Common Weakness Enumeration (CWE) ID of CVE-2023-4135?

The CWE ID of CVE-2023-4135 is 125.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203