# CVE-2021-4145: A NULL pointer dereference issue was found in the block mirror layer of QEMU in versions prior to 6.2.0.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2022-01-25T19:11:14.000Z
- Modified: 2026-06-17T04:19:06.790Z
- Weaknesses: CWE-476
- Assigned by: redhat

## Description

A NULL pointer dereference issue was found in the block mirror layer of QEMU in versions prior to 6.2.0. The `self` pointer is dereferenced in mirror_wait_on_conflicts() without ensuring that it's not NULL. A malicious unprivileged user within the guest could use this flaw to crash the QEMU process on the host when writing data reaches the threshold of mirroring node.

(As written by CVE List.)

## Affected

- QEMU: qemu-kvm 6.2.0
- qemu qemu: 6.1.0
- redhat enterprise_linux: 8.0

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.9 Medium `AV:L/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2034602> (issue-tracking, patch, third-party-advisory)
- <https://gitlab.com/qemu-project/qemu/-/commit/66fed30c9cd11854fc878a4eceb507e915d7c9cd> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20220311-0004/> (third-party-advisory)
- <https://security.gentoo.org/glsa/202208-27> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-4145](https://www.cve.org/CVERecord?id=CVE-2021-4145), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-4145](https://nvd.nist.gov/vuln/detail/CVE-2021-4145), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4145 · Whole record: https://cve.day/CVE-2021-4145.json · Rebuilt by cve.day 2026-11-25T22:58:06.666Z
