CVE-2026-142877: mm/huge_memory: set the mmu_gather page size in zap_huge_pud()

Published Dec 3, 2026
·
Updated

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

mm/hugememory: set the mmugather page size in zaphugepud()

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

WARNING: mm/mmugather.c:176 at tlbremovefoliopagessize+0x38/0x230 NIP [c00000000063d508] tlbremovefoliopagessize+0x38/0x230 LR [c0000000006fb688] zaphugepud+0x1b8/0x2d0 Call Trace: zaphugepud+0x170/0x2d0 (unreliable) zapvmarange+0x1604/0x1e20 unmapvmas+0xa0/0x1f0 unmapregion+0xb0/0x130 vmscompletemunmapvmas+0x120/0x310 dovmialignmunmap+0x1ec/0x240 vmmunmap+0x148/0x220 sysmunmap+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 MMUGATHERPAGESIZE in which mmugather needs to record the page size for which tlb flush is needed. zaphugepmd(), zappterange(), changehugepud() etc all do this already. However, since commit: dbe54153296d ("mm/hugememory: add vmfinsertfoliopud()")

a device-dax PUD maps a real folio and zaphugepud() now hands it to tlbremovepagesize(tlb, page, HPAGEPUDSIZE). At that point tlb->pagesize 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 Software

3 affected componentsFixes available
Linux Linux kernel
linux/kernel>=6.15.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5

Event History

Dec 3, 2026
CVE Published
via MITRE·03:23 AM
Data Sourced
via MITRE·03:23 AM
Description
Data Sourced
via OSV·03:23 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203