Vulnerability · Published Sep 19, 2025 · Assigned by Linux

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

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.1%top 95.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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---

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12linux6.1.153-1DEBIAN-CVE-2025-39844
Debian:13linux6.12.48-1DEBIAN-CVE-2025-39844
Debian:14linux6.16.6-1DEBIAN-CVE-2025-39844
Ubuntu:22.04:LTSlinux5.15.0-163.173UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux6.8.0-106.106UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux6.8.0-106.106USN-8095-1
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-aws5.15.0-1097.104UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-aws6.8.0-1050.53UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-aws6.8.0-1050.53USN-8095-1
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-aws-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1050.53~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1050.53~22.04.1USN-8095-4
Ubuntu:22.04:LTSlinux-azure5.15.0-1101.110UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure6.8.0-1051.57UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1051.57~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1102.111.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-fde6.8.0-1058.65UBUNTU-CVE-2025-39844
Ubuntu:25.10linux-azure-fdeno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-fde-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-azure-fde-6.86.8.0-1058.65~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-nvidiano fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-azure-nvidia-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gcp5.15.0-1097.106UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gcp6.8.0-1052.55UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gcp6.8.0-1052.55USN-8095-1
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gcp-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gcp-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1052.55~22.04.1USN-8095-1
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1052.55~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gke5.15.0-1093.99UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gke6.8.0-1048.53USN-8095-1
Ubuntu:24.04:LTSlinux-gke6.8.0-1048.53UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1080.88UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1035.38USN-8095-1
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1035.38UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-hwe-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-hwe-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-106.106~22.04.1USN-8095-1
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-106.106~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-ibm5.15.0-1091.94UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-ibm6.8.0-1049.49UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-ibm6.8.0-1049.49USN-8095-1
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1049.49~22.04.1USN-8095-1
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1049.49~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-intelno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1092.98UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-kvm5.15.0-1089.94UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-163.173UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-106.106.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-106.106.1USN-8095-1
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-lowlatency-hwe-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-106.106.1~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-106.106.1~22.04.1USN-8095-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1092.93UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1049.52USN-8100-1
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1049.52UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-nvidia-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1049.52~22.04.1USN-8100-1
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1049.52~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1049.52.1UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1049.52.1USN-8100-1
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1049.49UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-nvidia-tegra6.8.0-1020.20UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1038.38UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-oem-6.11no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-oem-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-oem-6.8no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oracle5.15.0-1094.100UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-oracle6.8.0-1047.48USN-8095-1
Ubuntu:24.04:LTSlinux-oracle6.8.0-1047.48UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-oracle-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1047.48~22.04.1USN-8095-1
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1047.48~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-raspi5.15.0-1091.94UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-raspi6.8.0-1050.54USN-8095-5
Ubuntu:24.04:LTSlinux-raspi6.8.0-1050.54UBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-riscv-6.14no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-106.106~22.04.1UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2025-39844
Ubuntu:24.04:LTSlinux-xilinx6.8.0-1028.29UBUNTU-CVE-2025-39844
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1061.65UBUNTU-CVE-2025-39844

Affected products (as reported)

VendorProductVersions
Linux Linux 8d400913c231bd1da74067255816453f96cd35b0 – before 732e62212f49d549c91071b4da7942ee3058f7a28d400913c231bd1da74067255816453f96cd35b0 – before eceb44e1f94bd641b2a4e8c09b64c797c4eabc158d400913c231bd1da74067255816453f96cd35b0 – before 6797a8b3f71b2cb558b8771a03450dc3e004e4538d400913c231bd1da74067255816453f96cd35b0 – before 4f7537772011fad832f83d6848f8eab282545bef8d400913c231bd1da74067255816453f96cd35b0 – before 469f9d22751472b81eaaf8a27fcdb5a70741c3428d400913c231bd1da74067255816453f96cd35b0 – before 7cc183f2e67d19b03ee5c13a6664b8c6cc37ff9d
Linux Linux 5.13

References