# CVE-2026-53345: KVM: Don't WARN if memory is dirtied without a vCPU when the VM is dying

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.16% (percentile 3, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-07-01T13:32:25.098Z
- **Modified:** 2026-11-06T17:18:25.773Z

## Who should check

- Anyone running Linux \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 21b880f040bd0e8b50ff30c5a40db7bf3384ff48; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 66a8e7ddd901023c89a2733494d827eca3f9c1b0; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 343e95c8ecc40e0738975ef4ee24c0c35e800e6b; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 99d7d43784ae3235026581e9bf892c036e04c8e6; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 8618004d3e897c0f1b71d9a9ab860461289bb89a
- Anyone running Linux 5.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: Don't WARN if memory is dirtied without a vCPU when the VM is dying

When marking a page dirty, complain about not having a running/loaded vCPU
if and only if the VM is still alive, i.e. its refcount is non-zero.  This
will allow fixing a memory leak for x86 SEV-ES guests without hitting what
is effectively a false positive on the WARN.

For some SEV-ES VM-Exits, KVM keeps a writable mapping of a guest page
across an exit to userspace, and typically unmaps the page on the next
KVM\_RUN.  But if userspace never calls KVM\_RUN after such an exit, then KVM
needs to unmap the page when the vCPU is destroyed, which in turn triggers
the WARN about not having a running vCPU.

Alternatively, SEV-ES could temporarily load the vCPU to suppress the WARN,
as is done in nested\_vmx\_free\_vcpu() (but for completely unrelated reasons;
suppressing WARN from nested\_put\_vmcs12\_pages() is pure happenstance).  But
loading a vCPU during destruction is gross (ideally nVMX code would be
cleaned up), risks complicating the SEV-ES code (KVM would need to ensure
the temporarily load()+put() only runs when the vCPU isn't already loaded),
and is ultimately pointless.

The motivation for the WARN is to guard against KVM dirtying guest memory
without pushing the corresponding GFN to the active vCPU's dirty ring, e.g.
to ensure userspace doesn't miss a dirty page.  But for the VM's refcount
to reach zero, there can't be \_any\_ userspace mappings to the dirty ring,
as mapping the dirty ring requires doing mmap() on the vCPU FD.  I.e. if
userspace had a valid mapping for the dirty ring, then the vCPU file and
thus the owning VM would still be alive.  And so since userspace can't
possibly reach the dirty ring, whether or not KVM technically "misses" a
push to the dirty ring is irrelevant.

## Affected and fixed versions

- Linux: \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 21b880f040bd0e8b50ff30c5a40db7bf3384ff48; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 66a8e7ddd901023c89a2733494d827eca3f9c1b0; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 343e95c8ecc40e0738975ef4ee24c0c35e800e6b; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 99d7d43784ae3235026581e9bf892c036e04c8e6; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 8618004d3e897c0f1b71d9a9ab860461289bb89a (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 8618004d3e897c0f1b71d9a9ab860461289bb89a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53345. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53345.md
Affected: Linux >= 2efd61a608b0039911924d2e5d7028eb37496e85, < 21b880f040bd0e8b50ff30c5a40db7bf3384ff48; >= 2efd61a608b0039911924d2e5d7028eb37496e85, < 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e; >= 2efd61a608b0039911924d2e5d7028eb37496e85, < 66a8e7ddd901023c89a2733494d827eca3f9c1b0; >= 2efd61a608b0039911924d2…
Fixed in: Linux 21b880f040bd0e8b50ff30c5a40db7bf3384ff48, Linux 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e, Linux 66a8e7ddd901023c89a2733494d827eca3f9c1b0, Linux 343e95c8ecc40e0738975ef4ee24c0c35e800e6b, Linux 99d7d43784ae3235026581e9bf892c036e04c8e6, Linux 8618004d3e897c0f1b71d9a9ab860461289bb89a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53345 being exploited?

There is no confirmed exploitation: CVE-2026-53345 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53345?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53345?

Linux \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 21b880f040bd0e8b50ff30c5a40db7bf3384ff48; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 66a8e7ddd901023c89a2733494d827eca3f9c1b0; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 343e95c8ecc40e0738975ef4ee24c0c35e800e6b; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 99d7d43784ae3235026581e9bf892c036e04c8e6; \>= 2efd61a608b0039911924d2e5d7028eb37496e85, \< 8618004d3e897c0f1b71d9a9ab860461289bb89a; Linux 5.17.

### Is there a fix for CVE-2026-53345?

Yes. Fixed in Linux 21b880f040bd0e8b50ff30c5a40db7bf3384ff48, Linux 033d39e41fc30f484f4e4f37fb4cd76b12cbb18e, Linux 66a8e7ddd901023c89a2733494d827eca3f9c1b0, Linux 343e95c8ecc40e0738975ef4ee24c0c35e800e6b, Linux 99d7d43784ae3235026581e9bf892c036e04c8e6, Linux 8618004d3e897c0f1b71d9a9ab860461289bb89a. Upgrade Linux to 8618004d3e897c0f1b71d9a9ab860461289bb89a or later.

### How do I check if I'm affected by CVE-2026-53345?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/033d39e41fc30f484f4e4f37fb4cd76b12cbb18e>
- patch: <https://git.kernel.org/stable/c/66a8e7ddd901023c89a2733494d827eca3f9c1b0>
- patch: <https://git.kernel.org/stable/c/343e95c8ecc40e0738975ef4ee24c0c35e800e6b>
- patch: <https://git.kernel.org/stable/c/99d7d43784ae3235026581e9bf892c036e04c8e6>
- patch: <https://git.kernel.org/stable/c/8618004d3e897c0f1b71d9a9ab860461289bb89a>
- other: <https://git.kernel.org/stable/c/21b880f040bd0e8b50ff30c5a40db7bf3384ff48>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53345>

HTML: <https://flawdb.com/CVE-2026-53345> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53345>
