# CVE-2026-52969: KVM: Reject wrapped offset in kvm\_reset\_dirty\_gfn()

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

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-129, CWE-190
- **Published:** 2026-06-24T16:28:48.085Z
- **Modified:** 2026-07-15T02:48:28.368Z

## Who should check

- Anyone running Linux \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 74f1a22f7a80f03d28ad8551a2d25d563433addf; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0eb281eb95b2d4eea4db1da5fe91023aecc97095; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 01b71b930f15728aa8599478a7ce90c19dcd9fc2; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< b315b033a877b1ee6d827810b5d7bb4392ffcf8d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0d419c23bb11b5c9664de777c47c1f04a235882d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< ecf9b3ea7847fe14f34b8c41f00de1eb95c747da; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 577a8d3bae0531f0e5ccfac919cd8192f920a804
- Anyone running Linux 5.11

## Description

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

KVM: Reject wrapped offset in kvm\_reset\_dirty\_gfn()

kvm\_reset\_dirty\_gfn() guards the gfn range with

	if (!memslot \|\| (offset + \_\_fls(mask)) \>= memslot-\>npages)
		return;

but offset is u64 and the addition is unchecked.  The check can be
silently bypassed by a u64 wrap.

The dirty ring backing those entries is MAP\_SHARED at
KVM\_DIRTY\_LOG\_PAGE\_OFFSET of the vcpu fd, so the VMM can rewrite the
slot and offset fields of any entry between when the kernel pushes
them and when KVM\_RESET\_DIRTY\_RINGS consumes them.  On reset,
kvm\_dirty\_ring\_reset() re-reads the values via READ\_ONCE() and feeds
them straight back into this check; only the flags handshake is
treated as the handover, the slot/offset payload is taken on trust.

Crafting two entries

	entry\[i\].offset   = 0xffffffffffffffc1
	entry\[i+1\].offset = 0

makes the coalescing loop in kvm\_dirty\_ring\_reset() compute

	delta = (s64)(0 - 0xffffffffffffffc1) = 63

which falls in \[0, BITS\_PER\_LONG), so it folds entry\[i+1\] into the
existing mask by setting bit 63.  The trailing kvm\_reset\_dirty\_gfn()
call then sees offset = 0xffffffffffffffc1 and \_\_fls(mask) = 63;
the sum is 0 in u64 and the bounds check passes.

That offset propagates into kvm\_arch\_mmu\_enable\_log\_dirty\_pt\_masked()
unchanged.  On the legacy MMU path -- kvm\_memslots\_have\_rmaps() ==
true, i.e. shadow paging, any VM that has allocated shadow roots, or
a write-tracked slot -- it reaches gfn\_to\_rmap(), which indexes
slot-\>arch.rmap\[0\]\[\] with a near-U64\_MAX gfn.  That is an
out-of-bounds load of a kvm\_rmap\_head, followed by a conditional
clear of PT\_WRITABLE\_MASK in whatever the loaded pointer points at.
The path is reachable from any process holding /dev/kvm.

Range-check offset on its own first, so the addition cannot wrap.
memslot-\>npages is bounded well below U64\_MAX, so once offset \<
npages holds, offset + \_\_fls(mask) (with \_\_fls(mask) \< BITS\_PER\_LONG)
stays in range.

## Affected and fixed versions

- Linux: \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 74f1a22f7a80f03d28ad8551a2d25d563433addf; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0eb281eb95b2d4eea4db1da5fe91023aecc97095; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 01b71b930f15728aa8599478a7ce90c19dcd9fc2; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< b315b033a877b1ee6d827810b5d7bb4392ffcf8d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0d419c23bb11b5c9664de777c47c1f04a235882d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< ecf9b3ea7847fe14f34b8c41f00de1eb95c747da; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 577a8d3bae0531f0e5ccfac919cd8192f920a804 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 577a8d3bae0531f0e5ccfac919cd8192f920a804 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-52969. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52969.md
Affected: Linux >= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, < 74f1a22f7a80f03d28ad8551a2d25d563433addf; >= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, < 0eb281eb95b2d4eea4db1da5fe91023aecc97095; >= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, < 01b71b930f15728aa8599478a7ce90c19dcd9fc2; >= fb04a1eddb1a65b6588a021…
Fixed in: Linux 74f1a22f7a80f03d28ad8551a2d25d563433addf, Linux 0eb281eb95b2d4eea4db1da5fe91023aecc97095, Linux 01b71b930f15728aa8599478a7ce90c19dcd9fc2, Linux 0d419c23bb11b5c9664de777c47c1f04a235882d, Linux 577a8d3bae0531f0e5ccfac919cd8192f920a804

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-52969 being exploited?

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

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

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 74f1a22f7a80f03d28ad8551a2d25d563433addf; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0eb281eb95b2d4eea4db1da5fe91023aecc97095; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 01b71b930f15728aa8599478a7ce90c19dcd9fc2; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< b315b033a877b1ee6d827810b5d7bb4392ffcf8d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 0d419c23bb11b5c9664de777c47c1f04a235882d; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< ecf9b3ea7847fe14f34b8c41f00de1eb95c747da; \>= fb04a1eddb1a65b6588a021bdc132270d5ae48bb, \< 577a8d3bae0531f0e5ccfac919cd8192f920a804; Linux 5.11.

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

Yes. Fixed in Linux 74f1a22f7a80f03d28ad8551a2d25d563433addf, Linux 0eb281eb95b2d4eea4db1da5fe91023aecc97095, Linux 01b71b930f15728aa8599478a7ce90c19dcd9fc2, Linux 0d419c23bb11b5c9664de777c47c1f04a235882d, Linux 577a8d3bae0531f0e5ccfac919cd8192f920a804. Upgrade Linux to 577a8d3bae0531f0e5ccfac919cd8192f920a804 or later.

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

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/74f1a22f7a80f03d28ad8551a2d25d563433addf>
- patch: <https://git.kernel.org/stable/c/0eb281eb95b2d4eea4db1da5fe91023aecc97095>
- patch: <https://git.kernel.org/stable/c/01b71b930f15728aa8599478a7ce90c19dcd9fc2>
- patch: <https://git.kernel.org/stable/c/b315b033a877b1ee6d827810b5d7bb4392ffcf8d>
- patch: <https://git.kernel.org/stable/c/0d419c23bb11b5c9664de777c47c1f04a235882d>
- patch: <https://git.kernel.org/stable/c/ecf9b3ea7847fe14f34b8c41f00de1eb95c747da>
- patch: <https://git.kernel.org/stable/c/577a8d3bae0531f0e5ccfac919cd8192f920a804>
- other: <https://access.redhat.com/security/cve/CVE-2026-52969>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2492434>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-52969.json>

## 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-52969>

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