Remote code execution in QEMU

Published: 2022-06-21
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3929
Exploitation vector Network
Public exploit N/A
Vulnerable software
Client/Desktop applications / Virtualization software

Vendor QEMU

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Use-after-free

EUVDB-ID: #VU64570

Risk: Medium


CVE-ID: CVE-2021-3929

CWE-ID: CWE-416 - Use After Free

Exploit availability: No


The vulnerability allows a remote user to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in the NVM Express Controller emulation in QEMU within the dma_buf_write() and dma_buf_read() function in hw/nvme/ctrl.c:nvme_tx(). A remote privileged user on the guest OS can trigger a use-after-free error and execute arbitrary code on the QEMU host.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Install updates from vendor's website.

Vulnerable software versions

QEMU: 6.0.0 - 6.2.0 rc2

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

How the attacker can exploit this vulnerability?

Is there known malware, which exploits this vulnerability?