CVE-2024-7409: Qemu: denial of service via improper synchronization in qemu nbd server during socket closure
A flaw was discovered in the qemu code for temporarily exposing an NBD server (used for storage migration and other tasks), where qemu can crash if a client still has a socket open at the time the server is taken offline. Even when qemu is set up to only accept clients with proper TLS credentials, an attacker without the TLS credentials can exploit the flaw by connecting a second socket while a storage migration is ongoing through the intended socket, where the attacker then stalls the NBD handshake to not reach the point of the TLS negotiation, then waiting for the server to go offline. When the NBD server is stopped, closing the attacker's socket can cause qemu to crash, forming a denial of service attack.
Other sources
A flaw was found in the QEMU NBD Server. This vulnerability allows a denial of service (DoS) attack via improper synchronization during socket closure when a client keeps a socket open as the server is taken offline.
— NVD
Qemu: denial of service via improper synchronization in qemu nbd server during socket closure
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.2.0-26 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.2.0-18
Event History
Frequently Asked Questions
What is the severity of CVE-2024-7409?
The severity of CVE-2024-7409 is classified according to its potential impact on system stability and data integrity during NBD server operations.
How do I fix CVE-2024-7409?
To fix CVE-2024-7409, ensure that you are running the latest patched version of QEMU provided by your vendor.
What are the risks of not addressing CVE-2024-7409?
Not addressing CVE-2024-7409 can lead to unexpected crashes of qemu while handling NBD server connections, affecting service availability.
Which software is affected by CVE-2024-7409?
CVE-2024-7409 affects the QEMU KVM software that uses NBD for storage migration and similar tasks.
How does CVE-2024-7409 affect the NBD server?
CVE-2024-7409 can cause the qemu process to crash if a client maintains an open socket when the NBD server is taken offline.