# CVE-2026-64130: mm/page\_alloc: fix initialization of tags of the huge zero folio with init\_on\_free

> 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-908
- **Published:** 2026-07-19T15:40:26.108Z
- **Modified:** 2026-08-13T15:10:33.113Z

## Who should check

- Anyone running Linux \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 738d18f1da3513d17b6f7bf30146cc4ac2480ffd; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 6a288a4ddb4a994490505ab5f41c445f8e6b6467
- Anyone running Linux 6.18

## Description

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

mm/page\_alloc: fix initialization of tags of the huge zero folio with init\_on\_free

\_\_GFP\_ZEROTAGS semantics are currently a bit weird, but effectively this
flag is only ever set alongside \_\_GFP\_ZERO and \_\_GFP\_SKIP\_KASAN.

If we run with init\_on\_free, we will zero out pages during
\_\_free\_pages\_prepare(), to skip zeroing on the allocation path.

However, when allocating with \_\_GFP\_ZEROTAG set, post\_alloc\_hook() will
consequently not only skip clearing page content, but also skip clearing
tag memory.

Not clearing tags through \_\_GFP\_ZEROTAGS is irrelevant for most pages that
will get mapped to user space through set\_pte\_at() later: set\_pte\_at() and
friends will detect that the tags have not been initialized yet
(PG\_mte\_tagged not set), and initialize them.

However, for the huge zero folio, which will be mapped through a PMD
marked as special, this initialization will not be performed, ending up
exposing whatever tags were still set for the pages.

The docs (Documentation/arch/arm64/memory-tagging-extension.rst) state
that allocation tags are set to 0 when a page is first mapped to user
space.  That no longer holds with the huge zero folio when init\_on\_free is
enabled.

Fix it by decoupling \_\_GFP\_ZEROTAGS from \_\_GFP\_ZERO, passing to
tag\_clear\_highpages() whether we want to also clear page content.

Invert the meaning of the tag\_clear\_highpages() return value to have
clearer semantics.

Reproduced with the huge zero folio by modifying the check\_buffer\_fill
arm64/mte selftest to use a 2 MiB area, after making sure that pages have
a non-0 tag set when freeing (note that, during boot, we will not actually
initialize tags, but only set KASAN\_TAG\_KERNEL in the page flags).

	$ ./check\_buffer\_fill
	1..20
	...
	not ok 17 Check initial tags with private mapping, sync error mode and mmap memory
	not ok 18 Check initial tags with private mapping, sync error mode and mmap/mprotect memory
	...

This code needs more cleanups; we'll tackle that next, like
decoupling \_\_GFP\_ZEROTAGS from \_\_GFP\_SKIP\_KASAN.

\[akpm@linux-foundation.org: s/\_\_GPF\_ZERO/\_\_GFP\_ZERO/, per David\]

## Affected and fixed versions

- Linux: \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 738d18f1da3513d17b6f7bf30146cc4ac2480ffd; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 6a288a4ddb4a994490505ab5f41c445f8e6b6467 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-64130.md
Affected: Linux >= adfb6609c6809e107ded9a1cd46f519c882e64ea, < 738d18f1da3513d17b6f7bf30146cc4ac2480ffd; >= adfb6609c6809e107ded9a1cd46f519c882e64ea, < 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6; >= adfb6609c6809e107ded9a1cd46f519c882e64ea, < 6a288a4ddb4a994490505ab5f41c445f8e6b6467; Linux 6.18
Fixed in: Linux 738d18f1da3513d17b6f7bf30146cc4ac2480ffd, Linux 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6, Linux 6a288a4ddb4a994490505ab5f41c445f8e6b6467

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

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

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

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

Linux \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 738d18f1da3513d17b6f7bf30146cc4ac2480ffd; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6; \>= adfb6609c6809e107ded9a1cd46f519c882e64ea, \< 6a288a4ddb4a994490505ab5f41c445f8e6b6467; Linux 6.18.

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

Yes. Fixed in Linux 738d18f1da3513d17b6f7bf30146cc4ac2480ffd, Linux 2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6, Linux 6a288a4ddb4a994490505ab5f41c445f8e6b6467. Upgrade Linux to 6a288a4ddb4a994490505ab5f41c445f8e6b6467 or later.

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

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/738d18f1da3513d17b6f7bf30146cc4ac2480ffd>
- patch: <https://git.kernel.org/stable/c/2f2aec5120b93a8f8b52dc50cdc60dbb8aec72f6>
- patch: <https://git.kernel.org/stable/c/6a288a4ddb4a994490505ab5f41c445f8e6b6467>

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

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