CVE-2026-138970 (GCVE-0-2026-138970)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:26 – Updated: 2026-12-01 05:40
VLAI
Title
MIPS: mm: align hugetlb mappings in arch_get_unmapped_area()
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 , < b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7 (git)
Affected: 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 , < 93ed028d8fbd19c9c984dfbc01af2baf783ee4a9 (git)
Affected: 7bd3f1e1a9ae7f7508c88dd056755a0a4741ae88 , < 975d4a6a6d4d23a39e2f49cafcc082d937960bc4 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 6.18.63 , ≤ 6.18.* (semver)
Unaffected: 7.3.4 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "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\u0027s\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 \u0026 ~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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached through the local mmap() syscall: ksys_mmap_pgoff() -\u003e __get_unmapped_area() -\u003e hugetlb_get_unmapped_area() -\u003e mm_get_unmapped_area_vmaflags() -\u003e MIPS arch_get_unmapped_area_common(). The attacker supplies only their own mmap/munmap calls; no network or remote input is involved.\nAC: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.\nPR: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.\nUI: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.\nS:U - The corruption is confined to the same kernel\u0027s page tables, hugetlb folios and TLB state. No VM, IOMMU or other security-authority boundary is crossed.\nC:H - hugetlb_fault() uses address \u0026 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.\nI:H - The out-of-VMA huge PMD aliases or overwrites a neighbour\u0027s 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.\nA:H - Any munmap() or process exit of the misaligned VMA reaches __unmap_hugepage_range(), which hits BUG_ON(start \u0026 ~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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:40:47.951Z",
        "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-12-01T05:40:47.951Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-138970",
      "date": "2026-12-04",
      "epss": "0.00184",
      "percentile": "0.08352"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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\u0027s\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 \u0026 ~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."
          }
        ],
        "id": "CVE-2026-138970",
        "lastModified": "2026-12-01T06:17:31.813",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:17:58.907",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/93ed028d8fbd19c9c984dfbc01af2baf783ee4a9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/975d4a6a6d4d23a39e2f49cafcc082d937960bc4"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/b37f9d7dbb25d71f16bae7f38197db4abb7a4ba7"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-01T08:24:44+00:00",
      "cve": "CVE-2026-138970",
      "id": "CVE-2026-138970",
      "initial_release_date": "2026-11-30T13:26:40.256000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: memory corruption via misaligned hugetlb mappings on MIPS",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-138970.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.