{"api_version":"1","generated_at":"2026-12-03T05:54:42+00:00","cve":"CVE-2026-142877","urls":{"html":"https://cve.report/CVE-2026-142877","api":"https://cve.report/api/cve/CVE-2026-142877.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142877","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142877"},"summary":{"title":"mm/huge_memory: set the mmu_gather page size in zap_huge_pud()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: set the mmu_gather page size in zap_huge_pud()\n\nUnmapping a device-dax mapping with 1G alignment on powerpc radix kernel\nbuilt with CONFIG_DEBUG_VM triggers this warning on every munmap:\n\n    WARNING: mm/mmu_gather.c:176 at __tlb_remove_folio_pages_size+0x38/0x230\n    NIP [c00000000063d508] __tlb_remove_folio_pages_size+0x38/0x230\n    LR [c0000000006fb688] zap_huge_pud+0x1b8/0x2d0\n    Call Trace:\n     zap_huge_pud+0x170/0x2d0 (unreliable)\n     __zap_vma_range+0x1604/0x1e20\n     unmap_vmas+0xa0/0x1f0\n     unmap_region+0xb0/0x130\n     vms_complete_munmap_vmas+0x120/0x310\n     do_vmi_align_munmap+0x1ec/0x240\n     __vm_munmap+0x148/0x220\n     sys_munmap+0x28/0x40\n\nTo trigger this - it is enough to mmap() /dev/dax0.0, touch the first\nbyte so that the whole 1G is mapped by a single PUD and then munmap()\nit.\n\nPowerPC needs MMU_GATHER_PAGE_SIZE in which mmu_gather needs to record\nthe page size for which tlb flush is needed. zap_huge_pmd(),\nzap_pte_range(), change_huge_pud() etc all do this already. However,\nsince commit:\n  dbe54153296d (\"mm/huge_memory: add vmf_insert_folio_pud()\")\n\na device-dax PUD maps a real folio and zap_huge_pud() now hands it to\ntlb_remove_page_size(tlb, page, HPAGE_PUD_SIZE). At that point\ntlb->page_size is still whatever the previous user left behind, which is\n0 for the fresh gather set up by munmap() and so the check fires.\n\nFix this in the same way like how other similar paths do.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:25","updated_at":"2026-12-03 04:18:25"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ac4c149cc0732a33e9d211d5ee9a49aac7878c57","name":"https://git.kernel.org/stable/c/ac4c149cc0732a33e9d211d5ee9a49aac7878c57","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bfd0c1c711660dd5c090a57f1aced2af262a679c","name":"https://git.kernel.org/stable/c/bfd0c1c711660dd5c090a57f1aced2af262a679c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/466d6844c8f19fba16b668b49861bdb8d7ded282","name":"https://git.kernel.org/stable/c/466d6844c8f19fba16b668b49861bdb8d7ded282","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142877","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142877","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dbe54153296d0931144a63295fc9367794bbe797 ac4c149cc0732a33e9d211d5ee9a49aac7878c57 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dbe54153296d0931144a63295fc9367794bbe797 bfd0c1c711660dd5c090a57f1aced2af262a679c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dbe54153296d0931144a63295fc9367794bbe797 466d6844c8f19fba16b668b49861bdb8d7ded282 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/huge_memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"ac4c149cc0732a33e9d211d5ee9a49aac7878c57","status":"affected","version":"dbe54153296d0931144a63295fc9367794bbe797","versionType":"git"},{"lessThan":"bfd0c1c711660dd5c090a57f1aced2af262a679c","status":"affected","version":"dbe54153296d0931144a63295fc9367794bbe797","versionType":"git"},{"lessThan":"466d6844c8f19fba16b668b49861bdb8d7ded282","status":"affected","version":"dbe54153296d0931144a63295fc9367794bbe797","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/huge_memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.15"},{"lessThan":"6.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: set the mmu_gather page size in zap_huge_pud()\n\nUnmapping a device-dax mapping with 1G alignment on powerpc radix kernel\nbuilt with CONFIG_DEBUG_VM triggers this warning on every munmap:\n\n    WARNING: mm/mmu_gather.c:176 at __tlb_remove_folio_pages_size+0x38/0x230\n    NIP [c00000000063d508] __tlb_remove_folio_pages_size+0x38/0x230\n    LR [c0000000006fb688] zap_huge_pud+0x1b8/0x2d0\n    Call Trace:\n     zap_huge_pud+0x170/0x2d0 (unreliable)\n     __zap_vma_range+0x1604/0x1e20\n     unmap_vmas+0xa0/0x1f0\n     unmap_region+0xb0/0x130\n     vms_complete_munmap_vmas+0x120/0x310\n     do_vmi_align_munmap+0x1ec/0x240\n     __vm_munmap+0x148/0x220\n     sys_munmap+0x28/0x40\n\nTo trigger this - it is enough to mmap() /dev/dax0.0, touch the first\nbyte so that the whole 1G is mapped by a single PUD and then munmap()\nit.\n\nPowerPC needs MMU_GATHER_PAGE_SIZE in which mmu_gather needs to record\nthe page size for which tlb flush is needed. zap_huge_pmd(),\nzap_pte_range(), change_huge_pud() etc all do this already. However,\nsince commit:\n  dbe54153296d (\"mm/huge_memory: add vmf_insert_folio_pud()\")\n\na device-dax PUD maps a real folio and zap_huge_pud() now hands it to\ntlb_remove_page_size(tlb, page, HPAGE_PUD_SIZE). At that point\ntlb->page_size is still whatever the previous user left behind, which is\n0 for the fresh gather set up by munmap() and so the check fires.\n\nFix this in the same way like how other similar paths do."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:23:34.889Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/ac4c149cc0732a33e9d211d5ee9a49aac7878c57"},{"url":"https://git.kernel.org/stable/c/bfd0c1c711660dd5c090a57f1aced2af262a679c"},{"url":"https://git.kernel.org/stable/c/466d6844c8f19fba16b668b49861bdb8d7ded282"}],"title":"mm/huge_memory: set the mmu_gather page size in zap_huge_pud()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142877","datePublished":"2026-12-03T03:23:34.889Z","dateReserved":"2026-12-03T03:10:28.334Z","dateUpdated":"2026-12-03T03:23:34.889Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:25","lastModifiedDate":"2026-12-03 04:18:25","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142877","Ordinal":"1","Title":"mm/huge_memory: set the mmu_gather page size in zap_huge_pud()","CVE":"CVE-2026-142877","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142877","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: set the mmu_gather page size in zap_huge_pud()\n\nUnmapping a device-dax mapping with 1G alignment on powerpc radix kernel\nbuilt with CONFIG_DEBUG_VM triggers this warning on every munmap:\n\n    WARNING: mm/mmu_gather.c:176 at __tlb_remove_folio_pages_size+0x38/0x230\n    NIP [c00000000063d508] __tlb_remove_folio_pages_size+0x38/0x230\n    LR [c0000000006fb688] zap_huge_pud+0x1b8/0x2d0\n    Call Trace:\n     zap_huge_pud+0x170/0x2d0 (unreliable)\n     __zap_vma_range+0x1604/0x1e20\n     unmap_vmas+0xa0/0x1f0\n     unmap_region+0xb0/0x130\n     vms_complete_munmap_vmas+0x120/0x310\n     do_vmi_align_munmap+0x1ec/0x240\n     __vm_munmap+0x148/0x220\n     sys_munmap+0x28/0x40\n\nTo trigger this - it is enough to mmap() /dev/dax0.0, touch the first\nbyte so that the whole 1G is mapped by a single PUD and then munmap()\nit.\n\nPowerPC needs MMU_GATHER_PAGE_SIZE in which mmu_gather needs to record\nthe page size for which tlb flush is needed. zap_huge_pmd(),\nzap_pte_range(), change_huge_pud() etc all do this already. However,\nsince commit:\n  dbe54153296d (\"mm/huge_memory: add vmf_insert_folio_pud()\")\n\na device-dax PUD maps a real folio and zap_huge_pud() now hands it to\ntlb_remove_page_size(tlb, page, HPAGE_PUD_SIZE). At that point\ntlb->page_size is still whatever the previous user left behind, which is\n0 for the fresh gather set up by munmap() and so the check fires.\n\nFix this in the same way like how other similar paths do.","Type":"Description","Title":"mm/huge_memory: set the mmu_gather page size in zap_huge_pud()"}]}}}