REDHAT-BUG-2576330: Medium severity Qemu Qemu vulnerability
A flaw was found in QEMU's NBD server implementation. A remote, unauthenticated attacker can crash a multi-export NBD server by negotiating block-status metadata for one export, switching to a different export, then sending an extended BLOCKSTATUS request. This triggers an assertion failure (client->contexts.exp == client->exp) in nbdcoblockstatuspayloadread in nbd/server.c, terminating the process and all exports it serves. Exploitation requires the NBD server to be configured with at least two named exports on the same listener.
Upstream report: https://gitlab.com/qemu-project/qemu/-/workitems/3796
Affected Software
Event History
Frequently Asked Questions
Which NBD server deployments are exposed to this issue?
The server must be configured with at least two named exports on the same listener. Deployments without that configuration are not described as affected.
Does an attacker need NBD credentials or prior access to exploit this?
No. The issue can be triggered by a remote, unauthenticated attacker that negotiates block-status metadata for one export, switches exports, and sends an extended BLOCK_STATUS request.
Does an attack affect only the targeted export?
No. The assertion failure terminates the NBD server process, disrupting all exports served by that process.
What evidence would indicate that this failure has occurred?
The server terminates after an assertion failure with the condition "client->contexts.exp == client->exp" in nbd_co_block_status_payload_read in nbd/server.c.