Related Vulnerabilities: CVE-2021-3750  

A DMA reentrancy issue was found in the EHCI controller emulation of QEMU. When EHCI tries to transfer the USB packets, it doesn't check if the buffer pointer is overlapped with its MMIO region. So crafted content may be written to the controller's registers and trigger actions like reset, but the device is still transferring packets. This flaw could enable a malicious guest to crash QEMU, resulting in a denial of service condition, or potentially execute arbitrary code within the context of the QEMU process on the host.

Severity Medium

Remote No

Type Arbitrary code execution

Description

A DMA reentrancy issue was found in the EHCI controller emulation of QEMU. When EHCI tries to transfer the USB packets, it doesn't check if the buffer pointer is overlapped with its MMIO region. So crafted content may be written to the controller's registers and trigger actions like reset, but the device is still transferring packets. This flaw could enable a malicious guest to crash QEMU, resulting in a denial of service condition, or potentially execute arbitrary code within the context of the QEMU process on the host.

AVG-1898 qemu 6.1.0-1 Medium Vulnerable

https://bugzilla.redhat.com/show_bug.cgi?id=1999073
https://gitlab.com/qemu-project/qemu/-/issues/541
https://gitlab.com/qemu-project/qemu/-/issues/556
https://lists.nongnu.org/archive/html/qemu-devel/2021-08/msg03692.html