# CVE-2026-142877: mm/huge\_memory: set the mmu\_gather page size in zap\_huge\_pud()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:23:34.889Z
- **Modified:** 2026-12-03T04:18:25.900Z

> **AI summary (AI-generated, claude-haiku-5-5):** A local user can trigger a kernel warning on every munmap of a device-dax 1G mapping, due to a missing mmu\_gather page size in zap\_huge\_pud() in the Linux kernel.

## Who should check

- Anyone running Linux \>= dbe54153296d0931144a63295fc9367794bbe797, \< ac4c149cc0732a33e9d211d5ee9a49aac7878c57; \>= dbe54153296d0931144a63295fc9367794bbe797, \< bfd0c1c711660dd5c090a57f1aced2af262a679c; \>= dbe54153296d0931144a63295fc9367794bbe797, \< 466d6844c8f19fba16b668b49861bdb8d7ded282
- Anyone running Linux 6.15

## Description

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

mm/huge\_memory: set the mmu\_gather page size in zap\_huge\_pud()

Unmapping a device-dax mapping with 1G alignment on powerpc radix kernel
built with CONFIG\_DEBUG\_VM triggers this warning on every munmap:

    WARNING: mm/mmu\_gather.c:176 at \_\_tlb\_remove\_folio\_pages\_size+0x38/0x230
    NIP \[c00000000063d508\] \_\_tlb\_remove\_folio\_pages\_size+0x38/0x230
    LR \[c0000000006fb688\] zap\_huge\_pud+0x1b8/0x2d0
    Call Trace:
     zap\_huge\_pud+0x170/0x2d0 (unreliable)
     \_\_zap\_vma\_range+0x1604/0x1e20
     unmap\_vmas+0xa0/0x1f0
     unmap\_region+0xb0/0x130
     vms\_complete\_munmap\_vmas+0x120/0x310
     do\_vmi\_align\_munmap+0x1ec/0x240
     \_\_vm\_munmap+0x148/0x220
     sys\_munmap+0x28/0x40

To trigger this - it is enough to mmap() /dev/dax0.0, touch the first
byte so that the whole 1G is mapped by a single PUD and then munmap()
it.

PowerPC needs MMU\_GATHER\_PAGE\_SIZE in which mmu\_gather needs to record
the page size for which tlb flush is needed. zap\_huge\_pmd(),
zap\_pte\_range(), change\_huge\_pud() etc all do this already. However,
since commit:
  dbe54153296d ("mm/huge\_memory: add vmf\_insert\_folio\_pud()")

a device-dax PUD maps a real folio and zap\_huge\_pud() now hands it to
tlb\_remove\_page\_size(tlb, page, HPAGE\_PUD\_SIZE). At that point
tlb-\>page\_size is still whatever the previous user left behind, which is
0 for the fresh gather set up by munmap() and so the check fires.

Fix this in the same way like how other similar paths do.

## Affected and fixed versions

- Linux: \>= dbe54153296d0931144a63295fc9367794bbe797, \< ac4c149cc0732a33e9d211d5ee9a49aac7878c57; \>= dbe54153296d0931144a63295fc9367794bbe797, \< bfd0c1c711660dd5c090a57f1aced2af262a679c; \>= dbe54153296d0931144a63295fc9367794bbe797, \< 466d6844c8f19fba16b668b49861bdb8d7ded282 (cvelist)
- Linux: 6.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-142877.md
Affected: Linux >= dbe54153296d0931144a63295fc9367794bbe797, < ac4c149cc0732a33e9d211d5ee9a49aac7878c57; >= dbe54153296d0931144a63295fc9367794bbe797, < bfd0c1c711660dd5c090a57f1aced2af262a679c; >= dbe54153296d0931144a63295fc9367794bbe797, < 466d6844c8f19fba16b668b49861bdb8d7ded282; Linux 6.15
Fixed in: Linux 466d6844c8f19fba16b668b49861bdb8d7ded282

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

There is no confirmed exploitation: CVE-2026-142877 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= dbe54153296d0931144a63295fc9367794bbe797, \< ac4c149cc0732a33e9d211d5ee9a49aac7878c57; \>= dbe54153296d0931144a63295fc9367794bbe797, \< bfd0c1c711660dd5c090a57f1aced2af262a679c; \>= dbe54153296d0931144a63295fc9367794bbe797, \< 466d6844c8f19fba16b668b49861bdb8d7ded282; Linux 6.15.

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

Yes. Fixed in Linux 466d6844c8f19fba16b668b49861bdb8d7ded282. Upgrade Linux to 466d6844c8f19fba16b668b49861bdb8d7ded282 or later.

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

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

- other: <https://git.kernel.org/stable/c/ac4c149cc0732a33e9d211d5ee9a49aac7878c57>
- other: <https://git.kernel.org/stable/c/bfd0c1c711660dd5c090a57f1aced2af262a679c>
- other: <https://git.kernel.org/stable/c/466d6844c8f19fba16b668b49861bdb8d7ded282>

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

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