Skip to content
OpenAdvisories
Unscored CVE-2025-39844 EUVD-2025-30356GHSA-fv7f-vxxp-c378

mm: move page table sync declarations to linux/pgtable.h

Published Sep 19, 2025 · Updated May 12, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.14 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-azure-nvidia-6.14 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.14 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-6.8 Package: linux-intel Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.14 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

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 products

VendorProductAffectedFixed
Linux Linux 5.13 5.15.192

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.16.6-1 —
Debian 13 linux 6.12.48-1 DSA-6008-1
Debian 12 linux 6.1.153-1 DSA-6009-1
Debian 11 linux-6.1 6.1.153-1~deb11u1 DLA-4328-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1017.21 —
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1081.83 —
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 24.04 LTS linux 6.8.0-106.106 USN-8095-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1050.53 USN-8095-1
Ubuntu 24.04 LTS linux-azure 6.8.0-1051.57 USN-8125-1
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1058.65 —
Ubuntu 24.04 LTS linux-azure-nvidia 6.8.0-1039.42 —
Ubuntu 24.04 LTS linux-gcp 6.8.0-1052.55 USN-8095-1
Ubuntu 24.04 LTS linux-gke 6.8.0-1048.53 USN-8095-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1035.38 USN-8095-1
Ubuntu 24.04 LTS linux-ibm 6.8.0-1049.49 USN-8095-1
Ubuntu 24.04 LTS linux-intel +19 No fix yet —
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-106.106.1 USN-8095-1
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1049.52 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1049.52.1 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1020.20 —
Ubuntu 24.04 LTS linux-oracle 6.8.0-1047.48 USN-8095-1
Ubuntu 24.04 LTS linux-raspi 6.8.0-1050.54 USN-8095-5
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1028.29 USN-8261-1
Ubuntu 22.04 LTS linux +1 5.15.0-163.173 USN-7909-1
Ubuntu 22.04 LTS linux-aws 5.15.0-1097.104 USN-7909-1
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu 22.04 LTS linux-azure 5.15.0-1101.110 USN-7910-2
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1102.111.1 —
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1058.65~22.04.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1097.106 USN-7909-4
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-gke 5.15.0-1093.99 USN-7909-4
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1080.88 USN-7909-4
Ubuntu 22.04 LTS linux-hwe-6.8 +1 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1091.94 USN-7909-5, USN-7909-1
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1092.98 USN-7909-1
Ubuntu 22.04 LTS linux-kvm 5.15.0-1089.94 USN-7933-1
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1092.93 USN-7909-1
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1049.49 USN-7909-1
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1038.38 USN-7909-1
Ubuntu 22.04 LTS linux-oracle 5.15.0-1094.100 USN-7909-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1061.65 USN-7909-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2040.41 USN-8095-5
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1045.46 USN-8095-3
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1089.91 USN-7909-2
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1096.105 USN-7909-2
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1050.53+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1052.58+fips1 USN-8165-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-106.106+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1052.55+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-aws-fips 5.15.0-1097.104+fips1 USN-7909-3
Ubuntu Pro FIPS-updates 22.04 LTS linux-azure-fips 5.15.0-1101.110+fips1 USN-7910-1
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips 5.15.0-163.173+fips1 USN-7909-3
Ubuntu Pro FIPS-updates 22.04 LTS linux-gcp-fips 5.15.0-1097.106+fips1 USN-7909-3
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 20.04 LTS linux-aws-5.15 5.15.0-1097.104~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-azure-5.15 5.15.0-1102.111~20.04.1 USN-7938-1
Ubuntu Pro 20.04 LTS linux-gcp-5.15 5.15.0-1097.106~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-hwe-5.15 +1 5.15.0-163.173~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-ibm-5.15 5.15.0-1091.94~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-intel-iotg-5.15 5.15.0-1092.98~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1049.49~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-oracle-5.15 5.15.0-1094.100~20.04.1 USN-7909-1
Ubuntu Pro 20.04 LTS linux-riscv-5.15 5.15.0-1092.96~20.04.1 —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.22.1 SUSE-SU-2025:4057-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.18.1 SUSE-SU-2025:4132-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.22.1.150700.17.15.1 SUSE-SU-2025:4057-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.73.1 SUSE-SU-2025:03600-1
SLES 15 SP6 kernel-azure +2 6.4.0-150600.8.52.1 SUSE-SU-2025:03634-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.73.1.150600.12.32.1 SUSE-SU-2025:03600-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLES 16.0 kernel-64kb +7 6.12.0-160000.6.1 SUSE-SU-2025:21179-1, SUSE-SU-2025:21139-1
SLES 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21074-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.6.1 SUSE-SU-2026:20560-1, SUSE-SU-2025:21074-1
SLE Micro 6.1 kernel-default-base 6.4.0-35.1.21.12 SUSE-SU-2025:20861-1
SLE Micro 6.1 kernel-rt +1 6.4.0-37.1 SUSE-SU-2025:20898-1
SLE Micro 6.1 kernel-source +2 6.4.0-35.1 SUSE-SU-2025:20861-1
SLE Micro 6.0 kernel-default-base 6.4.0-35.1.21.12 SUSE-SU-2025:20851-1
SLE Micro 6.0 kernel-rt +1 6.4.0-37.1 SUSE-SU-2025:20870-1
SLE Micro 6.0 kernel-source +2 6.4.0-35.1 SUSE-SU-2025:20851-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.22.1 SUSE-SU-2025:4057-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_6 1-150700.1.3.1 SUSE-SU-2025:4141-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_6 1-150700.15.3.1 SUSE-SU-2025:4057-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.73.1 SUSE-SU-2025:03600-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_16 1-150600.1.3.1 SUSE-SU-2025:3751-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_16 1-150600.13.3.1 SUSE-SU-2025:03600-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.22.1 SUSE-SU-2025:4141-1
SUSE Real Time Module 15 SP6 kernel-rt +3 6.4.0-150600.10.55.1 SUSE-SU-2025:3751-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.6.1.160000.2.4 openSUSE-SU-2025:20081-1
openSUSE Leap 16.0 kernel-rt +10 6.12.0-160000.6.1 openSUSE-SU-2025:20081-1
openSUSE Leap 15.6 dtb-aarch64 +10 6.4.0-150600.23.73.1 SUSE-SU-2025:03600-1
openSUSE Leap 15.6 kernel-azure +2 6.4.0-150600.8.52.1 SUSE-SU-2025:03634-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.73.1.150600.12.32.1 SUSE-SU-2025:03600-1
openSUSE Leap 15.6 kernel-rt +3 6.4.0-150600.10.55.1 SUSE-SU-2025:3751-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.46-66.121 +1 1:1.0-0.amzn2023 ALAS2023-2025-1210, ALAS2023-2025-1208
Amazon Linux 2023 perf +14 1:6.1.153-175.280.amzn2023 ALAS2023-2025-1210
Amazon Linux 2023 perf6.12 +14 1:6.12.46-66.121.amzn2023 ALAS2023-2025-1208

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 kernel 6.6.112.1-1 —
Azure Linux 2 (CBL-Mariner) kernel 5.15.200.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 8 bpftool +18 5.15.0-314.193.5.3.el9uek ELSA-2025-25757

Advisories 45

References