GHSA-X6MV-65QG-C346

Vulnerability from github – Published: 2026-09-24 18:31 – Updated: 2026-09-24 18:31
VLAI
Details

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]

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-93227"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-09-24T16:17:18Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mm_init: deferred_grow_zone(): fix out-of-range first_deferred_pfn\n\nWith CONFIG_DEFERRED_STRUCT_PAGE_INIT enabled, deferred_grow_zone()\ninitializes struct pages early in boot to satisfy an allocation.\n\nWith a large CMA reservation in place, the ranges deferred_init_memmap()\nfinds may not add up to the allocation it was asked for, and the function\nends up initializing the memory map of the entire zone and still falls\nshort.\n\nThat is fine in itself: the function accounts for it and leaves the\ncaller to decide whether it now has enough memory.\n\nHowever, the update of pgdat-\u003efirst_deferred_pfn that tracks where\nuninitialized memory map starts could overflow.\n\nIf the node\u0027s RAM end is not aligned on PAGES_PER_SECTION boundaries and\nsome deferred struct pages were initialized, pgdat-\u003efirst_deferred_pfn\nwould point past the end of the node\u0027s memory.\n\ndeferred_init_memmap() later picks up from pgdat-\u003efirst_deferred_pfn and\nhits a BUG_ON(), because it expects a pfn within its node.\n\nFor example, when running a kernel with CONFIG_DEFERRED_STRUCT_PAGE_INIT=y\nand CONFIG_CMA=y using the following qemu command line\n\n  qemu-system-x86_64 -enable-kvm -m 8032M -kernel bzImage \\\n      -append \"nokaslr cma=4768M@0x100000000\"\n\nthe kernel panics:\n\n  kernel BUG at mm/mm_init.c:2131!\n  CPU: 3 UID: 0 PID: 36 Comm: pgdatinit0 Not tainted 7.2.0-rc6 #1\n  RIP: 0010:deferred_init_memmap+0x1b8/0x1c0\n  RAX: 0000000000236000 R13: 0000000000238000\n  Call Trace:\n   kthread+0xdf/0x120\n   ret_from_fork+0x187/0x250\n\nMake sure that the update of pgdta-\u003efirst_deferred_pfn does not overflow\nwhen the entire zone\u0027s (and therefore node\u0027s) memory map is initialized.\n\n[rppt: massaged the changelog]",
  "id": "GHSA-x6mv-65qg-c346",
  "modified": "2026-09-24T18:31:23Z",
  "published": "2026-09-24T18:31:23Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-93227"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/45489d4f95802903ab35799b400b346fa4e13151"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/84339578c2d6936ac3a93cd1f0bbaa3468a988f2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/97090500d776c3f6d08e857e3a0a7cf092999094"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…