Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于无效页表项处理不当,可能导致空指针取消引用。

AI Predicted 4.4 Difficulty: Moderate EPSS 0.19% · P8

Possible ATT&CK Techniques 1 AI

T1498.002 · Reflection Amplification

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux fa96b57c149061f71a70bd6582d995f6424fbbf4< 34256805720993e37adf6127371a1265aea8376a affected
fa96b57c149061f71a70bd6582d995f6424fbbf4< 2ca9380b12711afe95b3589bd82b59623b3c96b3 affected
fa96b57c149061f71a70bd6582d995f6424fbbf4< 51424fd171cee6a33f01f7c66b8eb23ac42289d4 affected
fa96b57c149061f71a70bd6582d995f6424fbbf4< b49f085cd671addbda4802d6b9382513f7dd0f30 affected
fa96b57c149061f71a70bd6582d995f6424fbbf4< bd51834d1cf65a2c801295d230c220aeebf87a73 affected
5.19 affected
< 5.19 unaffected
6.1.136≤ 6.1.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-37818

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LoongArch: Return NULL from huge_pte_offset() for invalid PMD
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于无效页表项处理不当,可能导致空指针取消引用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux fa96b57c149061f71a70bd6582d995f6424fbbf4 ~ 34256805720993e37adf6127371a1265aea8376a -
Linux Linux 5.19 -

II. Public POCs for CVE-2025-37818

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-37818

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-05-08 · 33 CVEs total

CVE-2025-37801 7.8 HIGH spi: spi-imx: Add check for spi_imx_setupxfer()
CVE-2025-37822 7.8 HIGH riscv: uprobes: Add missing fence.i after building the XOL buffer
CVE-2025-37823 7.8 HIGH net_sched: hfsc: Fix a potential UAF in hfsc_dequeue() too
CVE-2025-37814 7.8 HIGH tty: Require CAP_SYS_ADMIN for all usages of TIOCL_SELMOUSEREPORT
CVE-2025-37813 7.8 HIGH usb: xhci: Fix invalid pointer dereference in Etron workaround
CVE-2025-37820 7.5 HIGH xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()
CVE-2025-37802 7.5 HIGH ksmbd: fix WARNING "do not call blocking ops when !TASK_RUNNING"
CVE-2025-37800 7.1 HIGH driver core: fix potential NULL pointer dereference in dev_uevent()
CVE-2025-37830 cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
CVE-2025-37829 cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
CVE-2025-37828 scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()
CVE-2025-37826 scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()
CVE-2025-37827 btrfs: zoned: return EIO on RAID1 block group write pointer mismatch
CVE-2025-37825 nvmet: fix out-of-bounds access in nvmet_enable_port
CVE-2025-37831 cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
CVE-2025-37834 mm/vmscan: don't try to reclaim hwpoison folio
CVE-2025-37824 tipc: fix NULL pointer dereference in tipc_mon_reinit_self()
CVE-2025-37821 sched/eevdf: Fix se->slice being set to U64_MAX and resulting crash
CVE-2025-37833 net/niu: Niu requires MSIX ENTRY_DATA fields touch before entry reads
CVE-2025-37819 irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()

Showing top 20 of 33 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-37818

No comments yet


Leave a comment