GHSA-8HFJ-2XMX-QW4P
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In the Linux kernel, the following vulnerability has been resolved:
mm: page_alloc: make defrag_mode retries follow the promoted order
Since commit 7e8756d7ad22 ("mm: page_alloc: fix non-movable reclaim storm in defrag_mode"), direct reclaim and compaction for non-movable requests under defrag_mode run at pageblock_order, to produce the whole blocks that ALLOC_NOFRAGMENT needs. The retry decisions that follow still use the request order. An order-0 request can therefore retry indefinitely without ever reaching the ALLOC_NOFRAGMENT fallback:
-
Reclaim at pageblock_order gives up after one pass as soon as a zone looks compaction_ready(), and do_try_to_free_pages() then returns 1 even though nothing was reclaimed. It returns before the retry that would reclaim memory.low-protected cgroups, so when most memory is protected, the pass that did run finds next to nothing.
-
Compaction at pageblock_order fails or is deferred.
-
should_reclaim_retry() takes the reported progress as progress for the order-0 request and resets no_progress_loops. The request retries.
Order 1-3 requests loop the same way, and should_compact_retry() also checks their pageblock_order compaction result against the request order.
On a production host (64G, defrag_mode, memory.low covering most of the workload), 95% of direct reclaim runs were order-9 runs that returned 1 with nothing reclaimed, at up to 60k runs per second. Across ~200M should_reclaim_retry() calls in a day, no_progress_loops never left 0. The spinning allocations were SLUB slab refills for inode and dentry caches. The time spent registers as memory pressure, and pressure-based OOM killing takes down both workloads and system services.
For promoted requests:
-
Reclaim progress does not reset no_progress_loops, as for costly orders.
-
should_compact_retry() checks the compaction result at the promoted order and does not retry COMPACT_SKIPPED, since the request can fall back. The compaction priority floor and the COMPACT_SUCCESS retry limit stay those of the request order, so a non-costly request still gets its COMPACT_PRIO_SYNC_FULL pass before it falls back.
When a promoted request takes the fallback, reset the retry counters, so that the fallback attempt gets a full retry budget before the OOM killer is considered. A request whose reclaim was not promoted spent its budget on the request itself and keeps its counters, as Usama Arif pointed out.
__alloc_pages_slowpath() computes the promoted order once per iteration and keeps it in alloc_context for direct reclaim, direct compaction and the two retry helpers, so no callee has to recompute it. Harry Yoo asked for the promoted order to be explicit rather than derived in each callee, and Vlastimil Babka suggested alloc_context over new function parameters.
In a VM reproducer (32G, defrag_mode, inode churn under memory.low):
before after
should_reclaim_retry() calls 63M 293k
peak memory pressure (PSI some avg10) 99% 12%
File creation runs 5.7x faster.
[kas@kernel.org: s/order_nofrag_promoted/order_defrag_promoted/, per hannes]
{
"affected": [],
"aliases": [
"CVE-2026-99921"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:20:28Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm: page_alloc: make defrag_mode retries follow the promoted order\n\nSince commit 7e8756d7ad22 (\"mm: page_alloc: fix non-movable reclaim storm\nin defrag_mode\"), direct reclaim and compaction for non-movable requests\nunder defrag_mode run at pageblock_order, to produce the whole blocks that\nALLOC_NOFRAGMENT needs. The retry decisions that follow still use the\nrequest order. An order-0 request can therefore retry indefinitely\nwithout ever reaching the ALLOC_NOFRAGMENT fallback:\n\n- Reclaim at pageblock_order gives up after one pass as soon as a zone\n looks compaction_ready(), and do_try_to_free_pages() then returns 1\n even though nothing was reclaimed. It returns before the retry that\n would reclaim memory.low-protected cgroups, so when most memory is\n protected, the pass that did run finds next to nothing.\n\n- Compaction at pageblock_order fails or is deferred.\n\n- should_reclaim_retry() takes the reported progress as progress for\n the order-0 request and resets no_progress_loops. The request\n retries.\n\nOrder 1-3 requests loop the same way, and should_compact_retry() also\nchecks their pageblock_order compaction result against the request order.\n\nOn a production host (64G, defrag_mode, memory.low covering most of the\nworkload), 95% of direct reclaim runs were order-9 runs that returned 1\nwith nothing reclaimed, at up to 60k runs per second. Across ~200M\nshould_reclaim_retry() calls in a day, no_progress_loops never left 0. \nThe spinning allocations were SLUB slab refills for inode and dentry\ncaches. The time spent registers as memory pressure, and pressure-based\nOOM killing takes down both workloads and system services.\n\nFor promoted requests:\n\n- Reclaim progress does not reset no_progress_loops, as for costly\n orders.\n\n- should_compact_retry() checks the compaction result at the promoted\n order and does not retry COMPACT_SKIPPED, since the request can fall\n back. The compaction priority floor and the COMPACT_SUCCESS retry\n limit stay those of the request order, so a non-costly request still\n gets its COMPACT_PRIO_SYNC_FULL pass before it falls back.\n\nWhen a promoted request takes the fallback, reset the retry counters, so\nthat the fallback attempt gets a full retry budget before the OOM killer\nis considered. A request whose reclaim was not promoted spent its budget\non the request itself and keeps its counters, as Usama Arif pointed out.\n\n__alloc_pages_slowpath() computes the promoted order once per iteration\nand keeps it in alloc_context for direct reclaim, direct compaction and\nthe two retry helpers, so no callee has to recompute it. Harry Yoo asked\nfor the promoted order to be explicit rather than derived in each callee,\nand Vlastimil Babka suggested alloc_context over new function parameters.\n\nIn a VM reproducer (32G, defrag_mode, inode churn under memory.low):\n\n before after\n should_reclaim_retry() calls 63M 293k\n peak memory pressure (PSI some avg10) 99% 12%\n\nFile creation runs 5.7x faster.\n\n[kas@kernel.org: s/order_nofrag_promoted/order_defrag_promoted/, per hannes]",
"id": "GHSA-8hfj-2xmx-qw4p",
"modified": "2026-11-30T15:32:49Z",
"published": "2026-11-30T15:32:49Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99921"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/09da7c4f34e1832eec526f22b39b815f655db6cf"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/4cd78a2dcfbb13f049f841b98763896a3d1d7750"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/8ef19c9bdc29bba6cf337f27542db16e70f3d027"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
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.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.