Description
In the Linux kernel, the following vulnerability has been resolved:

mm/mm_init: deferred_grow_zone(): fix out-of-range first_deferred_pfn

With CONFIG_DEFERRED_STRUCT_PAGE_INIT enabled, deferred_grow_zone()
initializes struct pages early in boot to satisfy an allocation.

With a large CMA reservation in place, the ranges deferred_init_memmap()
finds may not add up to the allocation it was asked for, and the function
ends up initializing the memory map of the entire zone and still falls
short.

That is fine in itself: the function accounts for it and leaves the
caller to decide whether it now has enough memory.

However, the update of pgdat->first_deferred_pfn that tracks where
uninitialized memory map starts could overflow.

If the node's RAM end is not aligned on PAGES_PER_SECTION boundaries and
some deferred struct pages were initialized, pgdat->first_deferred_pfn
would point past the end of the node's memory.

deferred_init_memmap() later picks up from pgdat->first_deferred_pfn and
hits a BUG_ON(), because it expects a pfn within its node.

For example, when running a kernel with CONFIG_DEFERRED_STRUCT_PAGE_INIT=y
and CONFIG_CMA=y using the following qemu command line

qemu-system-x86_64 -enable-kvm -m 8032M -kernel bzImage \
-append "nokaslr cma=4768M@0x100000000"

the kernel panics:

kernel BUG at mm/mm_init.c:2131!
CPU: 3 UID: 0 PID: 36 Comm: pgdatinit0 Not tainted 7.2.0-rc6 #1
RIP: 0010:deferred_init_memmap+0x1b8/0x1c0
RAX: 0000000000236000 R13: 0000000000238000
Call Trace:
kthread+0xdf/0x120
ret_from_fork+0x187/0x250

Make sure that the update of pgdta->first_deferred_pfn does not overflow
when the entire zone's (and therefore node's) memory map is initialized.

[rppt: massaged the changelog]
Published: 2026-09-24
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via kernel panic
Action: Immediate Patch
AI Analysis

Impact

In Linux kernel versions with CONFIG_DEFERRED_STRUCT_PAGE_INIT and large CMA reservations, the function deferred_grow_zone() can incorrectly overflow the pgdat->first_deferred_pfn counter when the node’s RAM end is not aligned on PAGES_PER_SECTION boundaries. This overflow causes a subsequent BUG_ON in deferred_init_memmap() because the pointer references a pfn that lies outside the node. The resulting kernel panic is a local denial‑of‑service condition that stops system operation. The vulnerability is essentially an integer overflow bug that leads to memory corruption.

Affected Systems

Affected systems are all Linux kernels running with CONFIG_DEFERRED_STRUCT_PAGE_INIT enabled and a sizeable CMA reservation, as demonstrated in kernel 7.2.0‑rc6. The bug exists in the core memory management code at mm/mm_init.c and will affect any node that has an unaligned RAM boundary when deferred struct pages are initialized before the node’s memory map is fully set up.

Risk and Exploitability

Based on the description, it is inferred that the defect triggers only during the kernel boot process when the overflow is reached. The CVSS and EPSS scores are not available and the vulnerability is not listed in CISA’s KEV catalog, so the public exploitation probability remains undefined. Based on the description, it is inferred that an attacker would need local privileged access to the machine or a way to influence kernel boot parameters, such as controlling the CMA reservation size, to trigger the fault. In practice, the risk manifests most readily as a local denial of service rather than arbitrary code execution.

Generated by OpenCVE AI on September 26, 2026 at 00:58 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel release that contains the deferred_grow_zone integer‑overflow fix, such as the latest stable 7.x kernel or any more recent distribution update
  • If a kernel upgrade is not immediately possible, disable CONFIG_DEFERRED_STRUCT_PAGE_INIT or avoid large CMA reservations that trigger the routine—e.g., remove "cma=4768M@0x100000000" from the boot command line or reduce the reservation size
  • For environments that must remain on a vulnerable kernel, consider patching the local source tree with the commit that corrects pgdat->first_deferred_pfn and rebuild the kernel
  • Monitor system logs for BUG_ON triggers at mm/mm_init.c to detect early signs of the bug, and treat any such panic as a high‑priority incident requiring remediation

Generated by OpenCVE AI on September 26, 2026 at 00:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 26 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Thu, 24 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mm/mm_init: deferred_grow_zone(): fix out-of-range first_deferred_pfn With CONFIG_DEFERRED_STRUCT_PAGE_INIT enabled, deferred_grow_zone() initializes struct pages early in boot to satisfy an allocation. With a large CMA reservation in place, the ranges deferred_init_memmap() finds may not add up to the allocation it was asked for, and the function ends up initializing the memory map of the entire zone and still falls short. That is fine in itself: the function accounts for it and leaves the caller to decide whether it now has enough memory. However, the update of pgdat->first_deferred_pfn that tracks where uninitialized memory map starts could overflow. If the node's RAM end is not aligned on PAGES_PER_SECTION boundaries and some deferred struct pages were initialized, pgdat->first_deferred_pfn would point past the end of the node's memory. deferred_init_memmap() later picks up from pgdat->first_deferred_pfn and hits a BUG_ON(), because it expects a pfn within its node. For example, when running a kernel with CONFIG_DEFERRED_STRUCT_PAGE_INIT=y and CONFIG_CMA=y using the following qemu command line qemu-system-x86_64 -enable-kvm -m 8032M -kernel bzImage \ -append "nokaslr cma=4768M@0x100000000" the kernel panics: kernel BUG at mm/mm_init.c:2131! CPU: 3 UID: 0 PID: 36 Comm: pgdatinit0 Not tainted 7.2.0-rc6 #1 RIP: 0010:deferred_init_memmap+0x1b8/0x1c0 RAX: 0000000000236000 R13: 0000000000238000 Call Trace: kthread+0xdf/0x120 ret_from_fork+0x187/0x250 Make sure that the update of pgdta->first_deferred_pfn does not overflow when the entire zone's (and therefore node's) memory map is initialized. [rppt: massaged the changelog]
Title mm/mm_init: deferred_grow_zone(): fix out-of-range first_deferred_pfn
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-24T15:29:00.289Z

Reserved: 2026-09-17T16:02:15.094Z

Link: CVE-2026-93227

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T16:17:18.130

Modified: 2026-09-24T16:17:18.130

Link: CVE-2026-93227

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T01:00:14Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound