Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99922

published

mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()

Published
30 Nov 2026, 13:18:18 UTC
Updated
02 Dec 2026, 09:21:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxd616d5126503967bf365db0711ee3c78b356efe9 to < bd3ecd4aed37333d6d615ec7549c094dab5d7f4e · d616d5126503967bf365db0711ee3c78b356efe9 to < 9de0bd4816d1a609d6d7d982c9047f55466ddb86 · d616d5126503967bf365db0711ee3c78b356efe9 to < d9303cf6e7f4892f45445d0c96d288b0a410e6ee · d616d5126503967bf365db0711ee3c78b356efe9 to < 2c7352110fd434729d5d7da163e99c6022c51a58 · d616d5126503967bf365db0711ee3c78b356efe9 to < 3ab27ef1675e42a03b68c83bb251872811a44845 · d616d5126503967bf365db0711ee3c78b356efe9 to < 6dddcb5b8bf84da259ab32cc372d0465537097d0 · d616d5126503967bf365db0711ee3c78b356efe9 to < 6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97 · d616d5126503967bf365db0711ee3c78b356efe9 to < f5cfc8e3b20ad71949a1e5623ff45882c063a71b · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.4 (affected) · 0 to < 5.4 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range() During stress testing with stress-ng on a 256-CPU system, a softlockup was observed when madvise(MADV_COLD) was called on a 31GB memory region backed by transparent hugepages. The region contains 15935 THP PMD entries, and the softlockup was triggered after 14485 of them had been processed. The THP branch of madvise_cold_or_pageout_pte_range() has no scheduling point. walk_pmd_range() invokes it once per 2MB PMD entry with no cond_resched() anywhere in the loop. Each iteration calls pmdp_invalidate() which issues a synchronous TLB shootdown (dsb ish) waiting for all CPUs to acknowledge. This operation can be time-consuming under heavy system load, causing the accumulated time across all PMD entries to exceed the softlockup threshold (20s) and panic when softlockup_panic=1. On a CONFIG_PREEMPT_NONE=y kernel, there is no other opportunity to reschedule during this entire traversal. The regular PTE path already has an unconditional cond_resched() at the function tail (introduced by commit 9c276cc65a58 ("mm: introduce MADV_COLD") and commit 1a4e58cce84e ("mm: introduce MADV_PAGEOUT") when MADV_COLD and MADV_PAGEOUT were first introduced) and a conditional one inside the loop (commit b2f557a21bc8 ("mm/madvise: add cond_resched() in madvise_cold_or_pageout_pte_range()")). The THP branch never received equivalent treatment. Fix by adding cond_resched() at the huge_unlock exit path after spin_unlock(ptl) and reclaim_pages(), which is the single exit point for all goto paths in the THP branch. Crash log: watchdog: BUG: soft lockup - CPU#63 stuck for 23s! [stress-ng-vm:1665914] ... Call trace: pmdp_invalidate+0x48/0x68 madvise_cold_or_pageout_pte_range+0x84c/0xb00 walk_pmd_range.isra.0+0x1ac/0x3b0 walk_pud_range+0x120/0x190 walk_pgd_range+0x170/0x1b8 __walk_page_range+0x184/0x198 walk_page_range_vma+0x94/0x128 madvise_cold+0xd8/0x198 madvise_vma_behavior+0x234/0x638 madvise_walk_vmas.constprop.0+0xdc/0x210 madvise_do_behavior+0xa8/0x328 do_madvise+0xd8/0x140 __arm64_sys_madvise+0x2c/0xe0

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux d616d5126503967bf365db0711ee3c78b356efe9 to < bd3ecd4aed37333d6d615ec7549c094dab5d7f4e (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < 9de0bd4816d1a609d6d7d982c9047f55466ddb86 (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < d9303cf6e7f4892f45445d0c96d288b0a410e6ee (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < 2c7352110fd434729d5d7da163e99c6022c51a58 (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < 3ab27ef1675e42a03b68c83bb251872811a44845 (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < 6dddcb5b8bf84da259ab32cc372d0465537097d0 (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < 6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97 (affected · git)d616d5126503967bf365db0711ee3c78b356efe9 to < f5cfc8e3b20ad71949a1e5623ff45882c063a71b (affected · git)Default: unaffected Linux · cna
Linux Linux 5.4 (affected)0 to < 5.4 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()

Provenance

Schema
5.2
Searchable
yes
Content hash
573eb22fc156e5eb13665665cdff8c67eb3d710f95b2ab9f0147089ded129da5
Ingested
02 Dec 2026, 09:26:24 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected