5.5

CVE-2025-37818: LoongArch: Return NULL from huge_pte_offset() for invalid PMD

Analyzed
AliasesUBUNTU-CVE-2025-37818DEBIAN-CVE-2025-37818
Published 08-05-2025Last modified 11-05-2026

Vulnerability summary

CVE-2025-37818 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in debian debian_linux. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 3

Timeline

  1. 08-05-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: LoongArch: Return NULL from huge_pte_offset() for invalid PMD LoongArch's huge_pte_offset() currently returns a pointer to a PMD slot even if the underlying entry points to invalid_pte_table (indicating no mapping). Callers like smaps_hugetlb_range() fetch this invalid entry value (the address of invalid_pte_table) via this pointer. The generic is_swap_pte() check then incorrectly identifies this address as a swap entry on LoongArch, because it satisfies the "!pte_present() && !pte_none()" conditions. This misinterpretation, combined with a coincidental match by is_migration_entry() on the address bits, leads to kernel crashes in pfn_swap_entry_to_page(). Fix this at the architecture level by modifying huge_pte_offset() to check the PMD entry's content using pmd_none() before returning. If the entry is invalid (i.e., it points to invalid_pte_table), return NULL instead of the pointer to the slot.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.19% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
Linux2 products
  • linux≥ fa96b57c149061f71a70bd6582d995f6424fbbf4, < 34256805720993e37adf6127371a1265aea8376a | ≥ fa96b57c149061f71a70bd6582d995f6424fbbf4, < 2ca9380b12711afe95b3589bd82b59623b3c96b3 | ≥ fa96b57c149061f71a70bd6582d995f6424fbbf4, < 51424fd171cee6a33f01f7c66b8eb23ac42289d4 | ≥ fa96b57c149061f71a70bd6582d995f6424fbbf4, < b49f085cd671addbda4802d6b9382513f7dd0f30 | ≥ fa96b57c149061f71a70bd6582d995f6424fbbf4, < bd51834d1cf65a2c801295d230c220aeebf87a73 | 5.19
  • linux_kernel≥ 5.19, < 6.1.136 | ≥ 6.2, < 6.6.89 | ≥ 6.7, < 6.12.26 | ≥ 6.13, < 6.14.5 | 6.15:rc1 | 6.15:rc2 | 6.15:rc3
Ubuntu2 products
  • linux-gcp-6.14< 6.14.0-1011.11~24.04.1
  • linux-realtime-6.14< 6.14.0-1010.10~24.04.1

3 vendors · 6 products

References

11 links
Show all 11 references