CVE-2026-126657: Qemu-kvm: host heap memory disclosure via incomplete structured nbd read replies
A flaw was found in QEMU's NBD block driver (block/nbd.c). A malicious NBD server can respond to a read request with a DONE-marked structured reply covering only part of the requested sector. QEMU accepts this incomplete read as successful and returns the full sector to the guest, including bytes from the uninitialized portion of a host heap buffer. This results in host QEMU process memory being disclosed to the guest VM, potentially leaking sensitive data such as credentials or other guests' data. The flaw is also reachable through the IDE buffered read path (hw/ide/core.c).
Upstream report: https://gitlab.com/qemu-project/qemu/-/workitems/3815
Other sources
A flaw was found in QEMU's NBD block driver. A malicious NBD server can send an incomplete structured read reply marked as done, causing QEMU to return uninitialized host heap memory to the guest VM, resulting in host memory disclosure.
— NVD
Qemu-kvm: host heap memory disclosure via incomplete structured nbd read replies
— Microsoft
Affected Software
Event History
Frequently Asked Questions
Which environments are exposed to this issue?
QEMU processes that use the NBD block driver and connect to an attacker-controlled or malicious NBD server are exposed. The disclosure is returned to the guest VM, and the issue is also reachable through the IDE buffered read path.
What must an attacker be able to do to exploit it?
An attacker needs to control the NBD server used by the affected QEMU instance. The server can send a structured read reply marked DONE that covers only part of the requested sector, causing QEMU to treat the read as successful.
What data could be disclosed?
The guest may receive bytes from an uninitialized host heap buffer in the portion of the sector not supplied by the NBD reply. This can expose memory from the host QEMU process, potentially including credentials or data belonging to other guests.
Is exploit code publicly available?
Yes. The available data indicates that an exploit was published on 2026-11-23.