{"id":"CVE-2026-99921","aliases":[],"cve":{"records":[{"id":"CVE-2026-99921","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.446Z","published":"2026-11-30T13:18:17.903Z","modified":"2026-11-30T13:18:17.903Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:17.903Z"}],"references":[{"url":"https://git.kernel.org/stable/c/09da7c4f34e1832eec526f22b39b815f655db6cf","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/8ef19c9bdc29bba6cf337f27542db16e70f3d027","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/4cd78a2dcfbb13f049f841b98763896a3d1d7750","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.50","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.4"}]}]}]}],"prioritization":[]},"title":"mm: page_alloc: make defrag_mode retries follow the promoted order","titleSource":"Linux","descriptionSource":"Linux","description":"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]","score":null,"severity":"unknown","published":"2026-11-30T13:18:17.903Z","modified":"2026-11-30T13:18:17.903Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"461d23368f2965c5cea866b84700936e05e9fc2d","status":"affected","lessThan":"09da7c4f34e1832eec526f22b39b815f655db6cf","versionType":"git"},{"version":"7e8756d7ad22655b935c384f123071aa9de07a27","status":"affected","lessThan":"8ef19c9bdc29bba6cf337f27542db16e70f3d027","versionType":"git"},{"version":"7e8756d7ad22655b935c384f123071aa9de07a27","status":"affected","lessThan":"4cd78a2dcfbb13f049f841b98763896a3d1d7750","versionType":"git"},{"version":"2dcdb27f6e4205cec15f74a043c95dbf36094301","status":"affected","versionType":"git"},{"version":"6.18.50","status":"affected","lessThan":"6.18.64","versionType":"semver"},{"version":"7.2.4","status":"affected","lessThan":"7.3","versionType":"semver"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99921"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99921"}],"remediation":[],"references":["https://git.kernel.org/stable/c/09da7c4f34e1832eec526f22b39b815f655db6cf","https://git.kernel.org/stable/c/8ef19c9bdc29bba6cf337f27542db16e70f3d027","https://git.kernel.org/stable/c/4cd78a2dcfbb13f049f841b98763896a3d1d7750"],"sources":[{"name":"CVE","id":"CVE-2026-99921","modified":"2026-11-30T13:18:17.903Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99921"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:00:06.248Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}