# CVE-2021-4095: A NULL pointer dereference was found in the Linux kernel's KVM when dirty ring logging is enabled without an active vCPU context.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-03-08T14:05:00.000Z
- Modified: 2026-06-17T04:19:01.513Z
- Weaknesses: CWE-476
- Assigned by: redhat

## Description

A NULL pointer dereference was found in the Linux kernel's KVM when dirty ring logging is enabled without an active vCPU context. An unprivileged local attacker on the host may use this flaw to cause a kernel oops condition and thus a denial of service by issuing a KVM_XEN_HVM_SET_ATTR ioctl. This flaw affects Linux kernel versions prior to 5.17-rc1.

(As written by CVE List.)

## Affected

- kernel: Linux kernel versions prior to 5.17-rc1
- linux linux_kernel: up to 5.16
- fedoraproject fedora: 34; 35

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:N/I:N/A:P`

## References

- <http://www.openwall.com/lists/oss-security/2022/01/17/1> (exploit, mailing-list, patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2031194> (exploit, issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QIOQN7JJNN6ABIDGRSTVZA65MHRLMH2Q/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT6573CGKVK3DU2632VVO5BVM4IU7SBV/> (vendor-advisory)

## Sources

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

---

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