CVE Vulnerabilities

CVE-2021-3750

Use After Free

Published: May 02, 2022 | Modified: Nov 21, 2024
CVSS 3.x
8.2
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
4.6 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Ubuntu
MEDIUM

A DMA reentrancy issue was found in the USB EHCI controller emulation of QEMU. EHCI does not verify if the Buffer Pointer overlaps with its MMIO region when it transfers the USB packets. Crafted content may be written to the controllers registers and trigger undesirable actions (such as reset) while the device is still transferring packets. This can ultimately lead to a use-after-free issue. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition, or potentially execute arbitrary code within the context of the QEMU process on the host. This flaw affects QEMU versions before 7.0.0.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Qemu Qemu * 7.0.0 (excluding)
Red Hat Enterprise Linux 8 RedHat virt-devel:rhel-8090020230927071820.b46abd14 *
Red Hat Enterprise Linux 8 RedHat virt:rhel-8090020230927071820.b46abd14 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat virt-devel:rhel-8060020231128234847.ad008a3a *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat virt:rhel-8060020231128234847.ad008a3a *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat virt-devel:rhel-8080020240116113044.63b34585 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat virt:rhel-8080020240116113044.63b34585 *
Red Hat Enterprise Linux 9 RedHat qemu-kvm-17:7.0.0-13.el9 *
Qemu Ubuntu bionic *
Qemu Ubuntu devel *
Qemu Ubuntu esm-infra/bionic *
Qemu Ubuntu esm-infra/focal *
Qemu Ubuntu focal *
Qemu Ubuntu hirsute *
Qemu Ubuntu impish *
Qemu Ubuntu jammy *
Qemu Ubuntu kinetic *
Qemu Ubuntu trusty *
Qemu Ubuntu xenial *

Potential Mitigations

References