CVE-2026-142877

Not scored yetLast modified Dec 3, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142878In the Linux kernel, the following vulnerability has been resolved: ocfs2: wait for filecheck kobject release after a failed add The filecCVE-2026-142879In the Linux kernel, the following vulnerability has been resolved: mm/migrate: snapshot the source nid before the misplaced migration A sCVE-2026-142883.1GitLab has remediated an issue in GitLab EE affecting all versions from 17.4 before 19.3.6, 19.4 before 19.4.3, and 19.5 before 19.5.1 that CVE-2026-142880In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: mark pages freed by __free_pages_core() as not tagged OCVE-2026-142881In the Linux kernel, the following vulnerability has been resolved: 9p: fix caches_show() out-of-bounds write The sysfs show handler for /CVE-2026-142882In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: clear stale request context after abort usb9pfs_clear_tx(CVE-2026-142883In the Linux kernel, the following vulnerability has been resolved: io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit io_CVE-2026-142884In the Linux kernel, the following vulnerability has been resolved: NFSD: Complete a cld upcall when the daemon closes the pipe Once nfsdcCVE-2026-142885In the Linux kernel, the following vulnerability has been resolved: xfs: check for buffer overruns when examining local/remote xattr entrieCVE-2026-142886In the Linux kernel, the following vulnerability has been resolved: media: ipu6: Fix firmware config leak on stream start ipu6_isys_fwcom_CVE-2026-142887In the Linux kernel, the following vulnerability has been resolved: PCI: cadence: Store the core controller in platform drvdata cdns_plat_CVE-2026-142888In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: resize Rx head buffers when rx-copybreak changes Since rx-c
CVE-2026-142877: Unscored | Vulnix