{"id":"CVE-2026-138970","aliases":["CVE-2026-138970"],"related":[],"kind":"vulnerability","state":"published","title":"MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:26:40.256Z","modified":"2026-12-01T06:17:31.813Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","fixed":"b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7","status":"affected"},{"type":"git","introduced":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","fixed":"93ed028d8fbd19c9c984dfbc01af2baf783ee4a9","status":"affected"},{"type":"git","introduced":"7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88","fixed":"975d4a6a6d4d23a39e2f49cafcc082d937960bc4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93ed028d8fbd19c9c984dfbc01af2baf783ee4a9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/975d4a6a6d4d23a39e2f49cafcc082d937960bc4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138970","url":"https://www.cve.org/CVERecord?id=CVE-2026-138970","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:47.951Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138970","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138970","licence":"Public domain","modified":"2026-12-01T06:17:31.813Z"}],"updatedAt":"2026-12-01T06:32:16.823Z","epss":{"score":0.00184,"percentile":0.08379,"date":"2026-12-01T12:00:22.000Z"}}