Use-after-free in QEMU - CVE-2021-3929

 

Use-after-free in QEMU - CVE-2021-3929

Published: June 21, 2022


Vulnerability identifier: #VU64570
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-3929
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: QEMU
Affected software:
QEMU

Detailed vulnerability description

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.


How to mitigate CVE-2021-3929

Install updates from vendor's website.

Sources