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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-39844— mm: move page table sync declarations to linux/pgtable.h

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存在安全漏洞,该漏洞源于未正确处理vmemmap区域跨PGD条目情况,可能导致内核崩溃。

AI Predicted 6.8 Difficulty: Hard EPSS 0.15% · P4

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 14

VendorProduct Version RangeStatus
Linux Linux 8d400913c231bd1da74067255816453f96cd35b0< 732e62212f49d549c91071b4da7942ee3058f7a2 affected
8d400913c231bd1da74067255816453f96cd35b0< eceb44e1f94bd641b2a4e8c09b64c797c4eabc15 affected
8d400913c231bd1da74067255816453f96cd35b0< 6797a8b3f71b2cb558b8771a03450dc3e004e453 affected
8d400913c231bd1da74067255816453f96cd35b0< 4f7537772011fad832f83d6848f8eab282545bef affected
8d400913c231bd1da74067255816453f96cd35b0< 469f9d22751472b81eaaf8a27fcdb5a70741c342 affected
8d400913c231bd1da74067255816453f96cd35b0< 7cc183f2e67d19b03ee5c13a6664b8c6cc37ff9d affected
5.13 affected
< 5.13 unaffected
… +6 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-39844

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
mm: move page table sync declarations to linux/pgtable.h
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: mm: move page table sync declarations to linux/pgtable.h During our internal testing, we started observing intermittent boot failures when the machine uses 4-level paging and has a large amount of persistent memory: BUG: unable to handle page fault for address: ffffe70000000034 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 0 P4D 0 Oops: 0002 [#1] SMP NOPTI RIP: 0010:__init_single_page+0x9/0x6d Call Trace: <TASK> __init_zone_device_page+0x17/0x5d memmap_init_zone_device+0x154/0x1bb pagemap_range+0x2e0/0x40f memremap_pages+0x10b/0x2f0 devm_memremap_pages+0x1e/0x60 dev_dax_probe+0xce/0x2ec [device_dax] dax_bus_probe+0x6d/0xc9 [... snip ...] </TASK> It turns out that the kernel panics while initializing vmemmap (struct page array) when the vmemmap region spans two PGD entries, because the new PGD entry is only installed in init_mm.pgd, but not in the page tables of other tasks. And looking at __populate_section_memmap(): if (vmemmap_can_optimize(altmap, pgmap)) // does not sync top level page tables r = vmemmap_populate_compound_pages(pfn, start, end, nid, pgmap); else // sync top level page tables in x86 r = vmemmap_populate(start, end, nid, altmap); In the normal path, vmemmap_populate() in arch/x86/mm/init_64.c synchronizes the top level page table (See commit 9b861528a801 ("x86-64, mem: Update all PGDs for direct mapping and vmemmap mapping changes")) so that all tasks in the system can see the new vmemmap area. However, when vmemmap_can_optimize() returns true, the optimized path skips synchronization of top-level page tables. This is because vmemmap_populate_compound_pages() is implemented in core MM code, which does not handle synchronization of the top-level page tables. Instead, the core MM has historically relied on each architecture to perform this synchronization manually. We're not the first party to encounter a crash caused by not-sync'd top level page tables: earlier this year, Gwan-gyeong Mun attempted to address the issue [1] [2] after hitting a kernel panic when x86 code accessed the vmemmap area before the corresponding top-level entries were synced. At that time, the issue was believed to be triggered only when struct page was enlarged for debugging purposes, and the patch did not get further updates. It turns out that current approach of relying on each arch to handle the page table sync manually is fragile because 1) it's easy to forget to sync the top level page table, and 2) it's also easy to overlook that the kernel should not access the vmemmap and direct mapping areas before the sync. # The solution: Make page table sync more code robust and harder to miss To address this, Dave Hansen suggested [3] [4] introducing {pgd,p4d}_populate_kernel() for updating kernel portion of the page tables and allow each architecture to explicitly perform synchronization when installing top-level entries. With this approach, we no longer need to worry about missing the sync step, reducing the risk of future regressions. The new interface reuses existing ARCH_PAGE_TABLE_SYNC_MASK, PGTBL_P*D_MODIFIED and arch_sync_kernel_mappings() facility used by vmalloc and ioremap to synchronize page tables. pgd_populate_kernel() looks like this: static inline void pgd_populate_kernel(unsigned long addr, pgd_t *pgd, p4d_t *p4d) { pgd_populate(&init_mm, pgd, p4d); if (ARCH_PAGE_TABLE_SYNC_MASK & PGTBL_PGD_MODIFIED) arch_sync_kernel_mappings(addr, addr); } It is worth noting that vmalloc() and apply_to_range() carefully synchronizes page tables by calling p*d_alloc_track() and arch_sync_kernel_mappings(), and thus they are not affected by ---truncated---
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存在安全漏洞,该漏洞源于未正确处理vmemmap区域跨PGD条目情况,可能导致内核崩溃。
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 8d400913c231bd1da74067255816453f96cd35b0 ~ 732e62212f49d549c91071b4da7942ee3058f7a2 -
Linux Linux 5.13 -

II. Public POCs for CVE-2025-39844

# 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-39844

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

Same Patch Batch · Linux · 2025-09-19 · 30 CVEs total

CVE-2025-39841 9.8 CRITICAL scsi: lpfc: Fix buffer free/clear order in deferred receive path
CVE-2025-39864 8.8 HIGH wifi: cfg80211: fix use-after-free in cmp_bss()
CVE-2025-39862 8.8 HIGH wifi: mt76: mt7915: fix list corruption after hardware restart
CVE-2025-39839 8.8 HIGH batman-adv: fix OOB read/write in network-coding decode
CVE-2025-39848 8.8 HIGH ax25: properly unshare skbs in ax25_kiss_rcv()
CVE-2025-39849 8.8 HIGH wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()
CVE-2025-39860 8.0 HIGH Bluetooth: Fix use-after-free in l2cap_sock_cleanup_listen()
CVE-2025-39837 7.8 HIGH platform/x86: asus-wmi: Fix racy registrations
CVE-2025-39863 7.8 HIGH wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work
CVE-2025-39866 7.8 HIGH fs: writeback: fix use-after-free in __mark_inode_dirty()
CVE-2025-39854 7.8 HIGH ice: fix NULL access of tx->in_use in ice_ll_ts_intr
CVE-2025-39851 7.5 HIGH vxlan: Fix NPD when refreshing an FDB entry with a nexthop object
CVE-2025-39857 7.5 HIGH net/smc: fix one NULL pointer dereference in smc_ib_is_sg_need_sync()
CVE-2025-39840 7.1 HIGH audit: fix out-of-bounds read in audit_compare_dname_path()
CVE-2025-39846 pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region()
CVE-2025-39865 tee: fix NULL pointer dereference in tee_shm_put
CVE-2025-39838 cifs: prevent NULL pointer dereference in UTF16 conversion
CVE-2025-39861 Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
CVE-2025-39859 ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
CVE-2025-39842 ocfs2: prevent release journal inode after journal shutdown

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-39844

No comments yet


Leave a comment