Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138970

published high CVSS 3.1 · 7.8

MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()

Published
30 Nov 2026, 13:26:40 UTC
Updated
01 Dec 2026, 05:40:47 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7 · 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < 93ed028d8fbd19c9c984dfbc01af2baf783ee4a9 · 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < 975d4a6a6d4d23a39e2f49cafcc082d937960bc4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: MIPS: mm: align hugetlb mappings in arch_get_unmapped_area() Since hugetlb mappings were made to go through the architecture's arch_get_unmapped_area{,_topdown}(), every architecture that implements those has to align hugetlb files itself. The generic implementation and loongarch do it with huge_page_mask_align(); MIPS was left out. A non-MAP_FIXED mmap() of a hugetlbfs file therefore returns an address that is only SHMLBA aligned, and the kernel then installs 2 MB PMDs for a VMA that starts in the middle of a PMD. The consequences on an Octeon (CN63XX) board running a process that links libhugetlbfs with HUGETLB_ELFMAP=R and HUGETLB_MORECORE=yes, all within a minute of start: the neighbouring 4 KB page table is clobbered, the TLB ends up with overlapping entries ("Caught Machine Check exception - caused by multiple matching entries in the TLB"), process exit trips BUG_ON(start & ~huge_page_mask(h)) in __unmap_hugepage_range(), and freed pages leak into unrelated kernel structures (oopses in the irq maple tree, in pte_offset_map, ...). Do what loongarch does in commit 3109d5ff484b ("LoongArch: Set hugetlb mmap base address aligned with pmd size"): when the file is a hugetlb file, use its page mask as the search alignment instead of the cache colour mask.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached through the local mmap() syscall: ksys_mmap_pgoff() -> __get_unmapped_area() -> hugetlb_get_unmapped_area() -> mm_get_unmapped_area_vmaflags() -> MIPS arch_get_unmapped_area_common(). The attacker supplies only their own mmap/munmap calls; no network or remote input is involved. AC:L - arch_get_unmapped_area_common() sets align_mask only from shm_align_mask, which is 0 on Octeon. arch_mmap_rnd() randomizes the base in 4K steps, so a top-down MAP_HUGETLB result is almost never 2 MB aligned. The attacker can force it every time by mapping an ordinary region first. No race is involved; CONFIG_HUGETLBFS=y is in cavium_octeon_defconfig. PR:L - Any local user can call mmap(MAP_ANONYMOUS|MAP_HUGETLB|MAP_NORESERVE). hugetlb_file_setup(HUGETLB_ANONHUGE_INODE) applies the can_do_hugetlb_shm() check only to SHM, and VM_NORESERVE makes hugetlb_reserve_pages() return 0 early. The mapping therefore succeeds without a capability or a hugetlbfs mount, even with an empty hugepage pool. UI:N - The attacking process creates the misaligned hugetlb VMA, faults it, and munmaps it or exits entirely on its own. No other user or administrator action is needed. S:U - The corruption is confined to the same kernel's page tables, hugetlb folios and TLB state. No VM, IOMMU or other security-authority boundary is crossed. C:H - hugetlb_fault() uses address & huge_page_mask, which falls below vm_start, and an underflowed vma_hugecache_offset(). huge_pte_alloc() installs a 2 MB PMD leaf over neighbouring VMAs, which MIPS pmd_bad() lets pte_offset_map treat as a PTE-table pointer. The commit reports clobbered page tables and freed pages reused by kernel structures, a page-level use-after-free giving read access to kernel memory. I:H - The out-of-VMA huge PMD aliases or overwrites a neighbour's PTE-table slot, so the attacker can corrupt page tables. Hugetlb folios walked by the ordinary pte/zap code are then freed while still referenced and reused by kernel structures (the commit cites irq maple tree corruption), which gives a write primitive into kernel memory. A:H - Any munmap() or process exit of the misaligned VMA reaches __unmap_hugepage_range(), which hits BUG_ON(start & ~huge_page_mask(h)) and oopses with mm locks held. This needs no hugepage pool and can be repeated at will. With a pool, the reporter also saw TLB machine-check exceptions from overlapping entries.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7 (affected · git)7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < 93ed028d8fbd19c9c984dfbc01af2baf783ee4a9 (affected · git)7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 to < 975d4a6a6d4d23a39e2f49cafcc082d937960bc4 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.13 (affected)0 to < 6.13 (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()

Provenance

Schema
5.2
Searchable
yes
Content hash
2e0f877909baf794ebcd7633ad66c8d6759bb4e15afab2b7f7351171344c3ff0
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected