# CVE-2026-64295: mm: page\_ext: add count limit to page\_ext\_iter\_next to prevent invalid PFN access

> 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-476
- **Published:** 2026-07-25T08:49:33.194Z
- **Modified:** 2026-08-17T05:17:29.090Z

## Who should check

- Anyone running Linux \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 8dcaa0f87a88d720d13106f3a306c6b61d189d86; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 377b1cd6bbcf327338cd951cc2fd74bc75540235; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< ffd017237cfe99e6e5602ab14179b0e6878a0840
- Anyone running Linux 6.15

## Description

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

mm: page\_ext: add count limit to page\_ext\_iter\_next to prevent invalid PFN access

The page\_ext iteration API does not validate if the PFN still belongs to a
valid section while advancing the iterator.  When dynamically adding
memory in the hotplug path, it can lead to a NULL pointer dereference
during page\_ext\_lookup at the boundary of the last valid section when
iterator count equals \_\_pgcount.

The for\_each\_page\_ext() macro calls page\_ext\_iter\_next() as its loop
increment.  for\_each\_page\_ext() does a "\_\_page\_ext =
page\_ext\_iter\_next(&\_\_iter)" at the end.  This causes page\_ext\_iter\_next()
to increment iter-\>index past \_\_pgcount and call page\_ext\_lookup(start\_pfn
+ \_\_pgcount).  During memory hotplug (online), the PFN at start\_pfn +
\_\_pgcount may belong to a section that has not yet been initialized,
causing page\_ext\_lookup() to trigger a NULL pointer dereference.

\[   14.555124\]\[  T846\] Call trace:
\[   14.555125\]\[  T846\]  lookup\_page\_ext+0x6c/0x108 (P)
\[   14.555127\]\[  T846\]  page\_ext\_lookup+0x30/0x3c
\[   14.555129\]\[  T846\]  \_\_reset\_page\_owner+0x11c/0x260
\[   14.571201\]\[  T846\]  \_\_free\_pages\_ok+0x5e8/0x8e0
\[   14.571204\]\[  T846\]  \_\_free\_pages\_core+0x78/0xf0
\[   14.571206\]\[  T846\]  generic\_online\_page+0x14/0x24
\[   14.597782\]\[  T846\]  online\_pages+0x178/0x30c
\[   14.597784\]\[  T846\]  memory\_block\_change\_state+0x284/0x32c
\[   14.597787\]\[  T846\]  memory\_subsys\_online+0x4c/0x64
\[   14.597789\]\[  T846\]  device\_online+0x88/0xb0
\[   14.597791\]\[  T846\]  online\_memory\_block+0x30/0x40
\[   14.597793\]\[  T846\]  walk\_memory\_blocks+0xac/0xe8
\[   14.597794\]\[  T846\]  add\_memory\_resource+0x280/0x298
\[   14.656161\]\[  T846\]  add\_memory+0x60/0x98

Move the iteration boundary enforcement inside the iterator functions, so
callers cannot inadvertently access beyond the requested range.

## Affected and fixed versions

- Linux: \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 8dcaa0f87a88d720d13106f3a306c6b61d189d86; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 377b1cd6bbcf327338cd951cc2fd74bc75540235; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< ffd017237cfe99e6e5602ab14179b0e6878a0840 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-64295.md
Affected: Linux >= 9039b9096ea27a20f0349d1537537663c935c8ed, < 8dcaa0f87a88d720d13106f3a306c6b61d189d86; >= 9039b9096ea27a20f0349d1537537663c935c8ed, < 377b1cd6bbcf327338cd951cc2fd74bc75540235; >= 9039b9096ea27a20f0349d1537537663c935c8ed, < ffd017237cfe99e6e5602ab14179b0e6878a0840; Linux 6.15
Fixed in: Linux 8dcaa0f87a88d720d13106f3a306c6b61d189d86, Linux 377b1cd6bbcf327338cd951cc2fd74bc75540235

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

There is no confirmed exploitation: CVE-2026-64295 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-64295?

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

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

Linux \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 8dcaa0f87a88d720d13106f3a306c6b61d189d86; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< 377b1cd6bbcf327338cd951cc2fd74bc75540235; \>= 9039b9096ea27a20f0349d1537537663c935c8ed, \< ffd017237cfe99e6e5602ab14179b0e6878a0840; Linux 6.15.

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

Yes. Fixed in Linux 8dcaa0f87a88d720d13106f3a306c6b61d189d86, Linux 377b1cd6bbcf327338cd951cc2fd74bc75540235. No fix listed yet: follow the vendor advisory.

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

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/8dcaa0f87a88d720d13106f3a306c6b61d189d86>
- patch: <https://git.kernel.org/stable/c/377b1cd6bbcf327338cd951cc2fd74bc75540235>
- patch: <https://git.kernel.org/stable/c/ffd017237cfe99e6e5602ab14179b0e6878a0840>

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

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