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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.07% · P21
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux fa96b57c149061f71a70bd6582d995f6424fbbf4 ~ 34256805720993e37adf6127371a1265aea8376a -
LinuxLinux 5.19 -

II. Public POCs for CVE-2025-37818

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

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-37817mcb: fix a double free bug in chameleon_parse_gdd()
CVE-2025-37833net/niu: Niu requires MSIX ENTRY_DATA fields touch before entry reads
CVE-2025-37834mm/vmscan: don't try to reclaim hwpoison folio
CVE-2025-37831cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
CVE-2025-37830cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
CVE-2025-37829cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
CVE-2025-37828scsi: ufs: mcq: Add NULL check in ufshcd_mcq_abort()
CVE-2025-37826scsi: ufs: core: Add NULL check in ufshcd_mcq_compl_pending_transfer()
CVE-2025-37827btrfs: zoned: return EIO on RAID1 block group write pointer mismatch
CVE-2025-37825nvmet: fix out-of-bounds access in nvmet_enable_port
CVE-2025-37823net_sched: hfsc: Fix a potential UAF in hfsc_dequeue() too
CVE-2025-37824tipc: fix NULL pointer dereference in tipc_mon_reinit_self()
CVE-2025-37821sched/eevdf: Fix se->slice being set to U64_MAX and resulting crash
CVE-2025-37822riscv: uprobes: Add missing fence.i after building the XOL buffer
CVE-2025-37820xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()
CVE-2025-37819irqchip/gic-v2m: Prevent use after free of gicv2m_get_fwnode()
CVE-2025-37800driver core: fix potential NULL pointer dereference in dev_uevent()
CVE-2025-37816mei: vsc: Fix fortify-panic caused by invalid counted_by() use
CVE-2025-37815misc: microchip: pci1xxxx: Fix Kernel panic during IRQ handler registration
CVE-2025-37814tty: Require CAP_SYS_ADMIN for all usages of TIOCL_SELMOUSEREPORT

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-37818

No comments yet


Leave a comment