PT-2026-166600
CVE-2026-142877
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾