CVE-2025-37818: LoongArch: Return NULL from huge_pte_offset() for invalid PMD
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.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3Timeline
- 08-05-2025PublishedVulnerability first disclosed.
- 11-05-2026Last 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- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- linux< 6.1.137-1 | < 6.12.27-1
- debian_linuxEOL11.0
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