REDHAT-BUG-2576450: Medium severity Qemu Qemu vulnerability
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
Affected Software
Event History
Frequently Asked Questions
What access or control is needed to exploit this issue?
An attacker needs to operate or control an NBD server that QEMU connects to and that can return crafted structured replies to read requests. The vulnerable behavior occurs when that server marks an incomplete reply as DONE.
Which deployments are realistically exposed?
QEMU instances using the NBD block driver are exposed when their NBD backend can be malicious or compromised. The issue is also reachable through QEMU's IDE buffered read path.
What is the security impact if exploitation succeeds?
The guest VM can receive bytes from an uninitialized host heap buffer as part of a read response. This may disclose memory from the host QEMU process, including sensitive data such as credentials or data associated with other guests.