Linux kernel denial of service in madvise THP handling
- Exploited
- No known exploitation
- Fix
- Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, and 2 more
- Who is exposed
- Not reported
Summary
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
What to do
Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, or one of 2 more.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-99922 (mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-99922 (entry last updated 2026-11-30):
Affected:
- Linux Linux: fixed in 5.10.275; fixed in 5.15.226; fixed in 6.1.193; fixed in 6.6.163; fixed in 6.12.117; fixed in 6.18.63; fixed in 7.3.4
- Linux Linux: from 6.19, fixed in 7.3.4; from 6.13, fixed in 6.18.63; from 6.7, fixed in 6.12.117; from 6.2, fixed in 6.6.163; from 5.16, fixed in 6.1.193; from 5.11, fixed in 5.15.226; fixed in 5.10.275
Fixed versions: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-99922 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99922 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/bd3ecd4aed37333d6d615ec7549c094dab5d7f4e
- https://git.kernel.org/stable/c/9de0bd4816d1a609d6d7d982c9047f55466ddb86
- https://git.kernel.org/stable/c/d9303cf6e7f4892f45445d0c96d288b0a410e6ee
- https://git.kernel.org/stable/c/2c7352110fd434729d5d7da163e99c6022c51a58
- https://git.kernel.org/stable/c/3ab27ef1675e42a03b68c83bb251872811a44845
- https://git.kernel.org/stable/c/6dddcb5b8bf84da259ab32cc372d0465537097d0
- https://git.kernel.org/stable/c/6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97
- https://git.kernel.org/stable/c/f5cfc8e3b20ad71949a1e5623ff45882c063a71b
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-99922
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-99922"}.Affected versions
- Linux Linuxfixed in 5.10.275; fixed in 5.15.226; fixed in 6.1.193; fixed in 6.6.163; fixed in 6.12.117; fixed in 6.18.63; fixed in 7.3.4
- Linux LinuxFrom 6.19 · fixed in 7.3.4; From 6.13 · fixed in 6.18.63; From 6.7 · fixed in 6.12.117; From 6.2 · fixed in 6.6.163; From 5.16 · fixed in 6.1.193; From 5.11 · fixed in 5.15.226; fixed in 5.10.275
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity?/10Unknown. No CVSS score or vendor rating
- No patch0/5No signal
What would change the score
- Would score about 75 if added to CISA KEV
- Would score about 70 if CISA's SSVC rates exploitation active
- Would score about 42 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 10
Questions about CVE-2026-99922
Is CVE-2026-99922 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-99922?
Linux: before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; before 6.12.117; before 6.18.63; before 7.3.4. Linux: from 6.19 before 7.3.4; from 6.13 before 6.18.63; from 6.7 before 6.12.117; from 6.2 before 6.6.163; from 5.16 before 6.1.193; from 5.11 before 5.15.226; before 5.10.275.
Source: cve.now feed data
How do I fix CVE-2026-99922?
Upgrade to a fixed version: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, or one of 2 more.
Source: cve.now feed data
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.