Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in QEMU's NBD server implementation. A remote, unauthenticated attacker can crash the NBD server by sending an NBD_OPT_SET_META_CONTEXT or NBD_OPT_LIST_META_CONTEXT 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/-/work_items/4843