{"api_version":"1","generated_at":"2026-11-30T19:44:02+00:00","cve":"CVE-2026-138970","urls":{"html":"https://cve.report/CVE-2026-138970","api":"https://cve.report/api/cve/CVE-2026-138970.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138970","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138970"},"summary":{"title":"MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: mm: align hugetlb mappings in arch_get_unmapped_area()\n\nSince hugetlb mappings were made to go through the architecture's\narch_get_unmapped_area{,_topdown}(), every architecture that implements\nthose has to align hugetlb files itself. The generic implementation and\nloongarch do it with huge_page_mask_align(); MIPS was left out.\n\nA non-MAP_FIXED mmap() of a hugetlbfs file therefore returns an address\nthat is only SHMLBA aligned, and the kernel then installs 2 MB PMDs for\na VMA that starts in the middle of a PMD. The consequences on an\nOcteon (CN63XX) board running a process that links libhugetlbfs with\nHUGETLB_ELFMAP=R and HUGETLB_MORECORE=yes, all within a minute of\nstart: the neighbouring 4 KB page table is clobbered, the TLB ends up\nwith overlapping entries (\"Caught Machine Check exception - caused by\nmultiple matching entries in the TLB\"), process exit trips\nBUG_ON(start & ~huge_page_mask(h)) in __unmap_hugepage_range(), and\nfreed pages leak into unrelated kernel structures (oopses in the irq\nmaple tree, in pte_offset_map, ...).\n\nDo what loongarch does in commit 3109d5ff484b (\"LoongArch: Set hugetlb\nmmap base address aligned with pmd size\"): when the file is a hugetlb\nfile, use its page mask as the search alignment instead of the cache\ncolour mask.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:58","updated_at":"2026-11-30 14:17:58"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7","name":"https://git.kernel.org/stable/c/b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/93ed028d8fbd19c9c984dfbc01af2baf783ee4a9","name":"https://git.kernel.org/stable/c/93ed028d8fbd19c9c984dfbc01af2baf783ee4a9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/975d4a6a6d4d23a39e2f49cafcc082d937960bc4","name":"https://git.kernel.org/stable/c/975d4a6a6d4d23a39e2f49cafcc082d937960bc4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138970","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138970","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 93ed028d8fbd19c9c984dfbc01af2baf783ee4a9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 975d4a6a6d4d23a39e2f49cafcc082d937960bc4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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":["arch/mips/mm/mmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7","status":"affected","version":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","versionType":"git"},{"lessThan":"93ed028d8fbd19c9c984dfbc01af2baf783ee4a9","status":"affected","version":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","versionType":"git"},{"lessThan":"975d4a6a6d4d23a39e2f49cafcc082d937960bc4","status":"affected","version":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/mips/mm/mmap.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.13"},{"lessThan":"6.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: mm: align hugetlb mappings in arch_get_unmapped_area()\n\nSince hugetlb mappings were made to go through the architecture's\narch_get_unmapped_area{,_topdown}(), every architecture that implements\nthose has to align hugetlb files itself. The generic implementation and\nloongarch do it with huge_page_mask_align(); MIPS was left out.\n\nA non-MAP_FIXED mmap() of a hugetlbfs file therefore returns an address\nthat is only SHMLBA aligned, and the kernel then installs 2 MB PMDs for\na VMA that starts in the middle of a PMD. The consequences on an\nOcteon (CN63XX) board running a process that links libhugetlbfs with\nHUGETLB_ELFMAP=R and HUGETLB_MORECORE=yes, all within a minute of\nstart: the neighbouring 4 KB page table is clobbered, the TLB ends up\nwith overlapping entries (\"Caught Machine Check exception - caused by\nmultiple matching entries in the TLB\"), process exit trips\nBUG_ON(start & ~huge_page_mask(h)) in __unmap_hugepage_range(), and\nfreed pages leak into unrelated kernel structures (oopses in the irq\nmaple tree, in pte_offset_map, ...).\n\nDo what loongarch does in commit 3109d5ff484b (\"LoongArch: Set hugetlb\nmmap base address aligned with pmd size\"): when the file is a hugetlb\nfile, use its page mask as the search alignment instead of the cache\ncolour mask."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:26:40.256Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7"},{"url":"https://git.kernel.org/stable/c/93ed028d8fbd19c9c984dfbc01af2baf783ee4a9"},{"url":"https://git.kernel.org/stable/c/975d4a6a6d4d23a39e2f49cafcc082d937960bc4"}],"title":"MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138970","datePublished":"2026-11-30T13:26:40.256Z","dateReserved":"2026-11-30T13:22:15.906Z","dateUpdated":"2026-11-30T13:26:40.256Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:58","lastModifiedDate":"2026-11-30 14:17:58","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138970","Ordinal":"1","Title":"MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()","CVE":"CVE-2026-138970","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138970","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: mm: align hugetlb mappings in arch_get_unmapped_area()\n\nSince hugetlb mappings were made to go through the architecture's\narch_get_unmapped_area{,_topdown}(), every architecture that implements\nthose has to align hugetlb files itself. The generic implementation and\nloongarch do it with huge_page_mask_align(); MIPS was left out.\n\nA non-MAP_FIXED mmap() of a hugetlbfs file therefore returns an address\nthat is only SHMLBA aligned, and the kernel then installs 2 MB PMDs for\na VMA that starts in the middle of a PMD. The consequences on an\nOcteon (CN63XX) board running a process that links libhugetlbfs with\nHUGETLB_ELFMAP=R and HUGETLB_MORECORE=yes, all within a minute of\nstart: the neighbouring 4 KB page table is clobbered, the TLB ends up\nwith overlapping entries (\"Caught Machine Check exception - caused by\nmultiple matching entries in the TLB\"), process exit trips\nBUG_ON(start & ~huge_page_mask(h)) in __unmap_hugepage_range(), and\nfreed pages leak into unrelated kernel structures (oopses in the irq\nmaple tree, in pte_offset_map, ...).\n\nDo what loongarch does in commit 3109d5ff484b (\"LoongArch: Set hugetlb\nmmap base address aligned with pmd size\"): when the file is a hugetlb\nfile, use its page mask as the search alignment instead of the cache\ncolour mask.","Type":"Description","Title":"MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()"}]}}}