REDHAT-BUG-2576432: Medium severity Qemu Qemu vulnerability
A flaw was found in QEMU's NBD server implementation. A remote, unauthenticated attacker can crash the NBD server by sending an NBDOPTSETMETACONTEXT or NBDOPTLISTMETACONTEXT request with a declared option length larger than the actual payload. The handler processes the request and sends a valid reply, but fails to validate that the full declared length was consumed, leaving residual data that triggers an assertion failure (!client->optlen) in nbd/server.c. Unlike sibling option handlers, the meta-context options lack this validation check. This affects qemu-nbd, qemu-storage-daemon, and qemu-system with the internal NBD server, from v2.12.0 onward.
Upstream report: https://gitlab.com/qemu-project/qemu/-/workitems/4843
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using QEMU's NBD server are affected, including qemu-nbd, qemu-storage-daemon, and qemu-system instances with the internal NBD server enabled. The issue affects versions from v2.12.0 onward.
What access does an attacker need?
An attacker only needs remote network access to the NBD server. Authentication is not required.
What is the expected impact of successful exploitation?
A crafted meta-context option request can trigger an assertion failure in the NBD server, causing it to crash. The provided information describes a denial-of-service impact.