{"api_version":"1","generated_at":"2026-12-02T11:59:30+00:00","cve":"CVE-2026-99922","urls":{"html":"https://cve.report/CVE-2026-99922","api":"https://cve.report/api/cve/CVE-2026-99922.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99922","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99922"},"summary":{"title":"mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()\n\nDuring stress testing with stress-ng on a 256-CPU system, a softlockup was\nobserved when madvise(MADV_COLD) was called on a 31GB memory region backed\nby transparent hugepages.  The region contains 15935 THP PMD entries, and\nthe softlockup was triggered after 14485 of them had been processed.\n\nThe THP branch of madvise_cold_or_pageout_pte_range() has no scheduling\npoint.  walk_pmd_range() invokes it once per 2MB PMD entry with no\ncond_resched() anywhere in the loop.  Each iteration calls\npmdp_invalidate() which issues a synchronous TLB shootdown (dsb ish)\nwaiting for all CPUs to acknowledge.  This operation can be time-consuming\nunder heavy system load, causing the accumulated time across all PMD\nentries to exceed the softlockup threshold (20s) and panic when\nsoftlockup_panic=1.  On a CONFIG_PREEMPT_NONE=y kernel, there is no other\nopportunity to reschedule during this entire traversal.\n\nThe regular PTE path already has an unconditional cond_resched() at the\nfunction tail (introduced by commit 9c276cc65a58 (\"mm: introduce\nMADV_COLD\") and commit 1a4e58cce84e (\"mm: introduce MADV_PAGEOUT\") when\nMADV_COLD and MADV_PAGEOUT were first introduced) and a conditional one\ninside the loop (commit b2f557a21bc8 (\"mm/madvise: add cond_resched() in\nmadvise_cold_or_pageout_pte_range()\")).  The THP branch never received\nequivalent treatment.\n\nFix by adding cond_resched() at the huge_unlock exit path after\nspin_unlock(ptl) and reclaim_pages(), which is the single exit point for\nall goto paths in the THP branch.\n\nCrash log:\n  watchdog: BUG: soft lockup - CPU#63 stuck for 23s! [stress-ng-vm:1665914]\n  ...\n  Call trace:\n  pmdp_invalidate+0x48/0x68\n  madvise_cold_or_pageout_pte_range+0x84c/0xb00\n  walk_pmd_range.isra.0+0x1ac/0x3b0\n  walk_pud_range+0x120/0x190\n  walk_pgd_range+0x170/0x1b8\n  __walk_page_range+0x184/0x198\n  walk_page_range_vma+0x94/0x128\n  madvise_cold+0xd8/0x198\n  madvise_vma_behavior+0x234/0x638\n  madvise_walk_vmas.constprop.0+0xdc/0x210\n  madvise_do_behavior+0xa8/0x328\n  do_madvise+0xd8/0x140\n  __arm64_sys_madvise+0x2c/0xe0","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:28","updated_at":"2026-12-02 10:17:23"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/6dddcb5b8bf84da259ab32cc372d0465537097d0","name":"https://git.kernel.org/stable/c/6dddcb5b8bf84da259ab32cc372d0465537097d0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f5cfc8e3b20ad71949a1e5623ff45882c063a71b","name":"https://git.kernel.org/stable/c/f5cfc8e3b20ad71949a1e5623ff45882c063a71b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9de0bd4816d1a609d6d7d982c9047f55466ddb86","name":"https://git.kernel.org/stable/c/9de0bd4816d1a609d6d7d982c9047f55466ddb86","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97","name":"https://git.kernel.org/stable/c/6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ab27ef1675e42a03b68c83bb251872811a44845","name":"https://git.kernel.org/stable/c/3ab27ef1675e42a03b68c83bb251872811a44845","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d9303cf6e7f4892f45445d0c96d288b0a410e6ee","name":"https://git.kernel.org/stable/c/d9303cf6e7f4892f45445d0c96d288b0a410e6ee","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2c7352110fd434729d5d7da163e99c6022c51a58","name":"https://git.kernel.org/stable/c/2c7352110fd434729d5d7da163e99c6022c51a58","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bd3ecd4aed37333d6d615ec7549c094dab5d7f4e","name":"https://git.kernel.org/stable/c/bd3ecd4aed37333d6d615ec7549c094dab5d7f4e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99922","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99922","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 bd3ecd4aed37333d6d615ec7549c094dab5d7f4e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 9de0bd4816d1a609d6d7d982c9047f55466ddb86 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 d9303cf6e7f4892f45445d0c96d288b0a410e6ee git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 2c7352110fd434729d5d7da163e99c6022c51a58 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 3ab27ef1675e42a03b68c83bb251872811a44845 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 6dddcb5b8bf84da259ab32cc372d0465537097d0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d616d5126503967bf365db0711ee3c78b356efe9 f5cfc8e3b20ad71949a1e5623ff45882c063a71b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/madvise.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bd3ecd4aed37333d6d615ec7549c094dab5d7f4e","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"9de0bd4816d1a609d6d7d982c9047f55466ddb86","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"d9303cf6e7f4892f45445d0c96d288b0a410e6ee","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"2c7352110fd434729d5d7da163e99c6022c51a58","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"3ab27ef1675e42a03b68c83bb251872811a44845","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"6dddcb5b8bf84da259ab32cc372d0465537097d0","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"},{"lessThan":"f5cfc8e3b20ad71949a1e5623ff45882c063a71b","status":"affected","version":"d616d5126503967bf365db0711ee3c78b356efe9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/madvise.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.4"},{"lessThan":"5.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()\n\nDuring stress testing with stress-ng on a 256-CPU system, a softlockup was\nobserved when madvise(MADV_COLD) was called on a 31GB memory region backed\nby transparent hugepages.  The region contains 15935 THP PMD entries, and\nthe softlockup was triggered after 14485 of them had been processed.\n\nThe THP branch of madvise_cold_or_pageout_pte_range() has no scheduling\npoint.  walk_pmd_range() invokes it once per 2MB PMD entry with no\ncond_resched() anywhere in the loop.  Each iteration calls\npmdp_invalidate() which issues a synchronous TLB shootdown (dsb ish)\nwaiting for all CPUs to acknowledge.  This operation can be time-consuming\nunder heavy system load, causing the accumulated time across all PMD\nentries to exceed the softlockup threshold (20s) and panic when\nsoftlockup_panic=1.  On a CONFIG_PREEMPT_NONE=y kernel, there is no other\nopportunity to reschedule during this entire traversal.\n\nThe regular PTE path already has an unconditional cond_resched() at the\nfunction tail (introduced by commit 9c276cc65a58 (\"mm: introduce\nMADV_COLD\") and commit 1a4e58cce84e (\"mm: introduce MADV_PAGEOUT\") when\nMADV_COLD and MADV_PAGEOUT were first introduced) and a conditional one\ninside the loop (commit b2f557a21bc8 (\"mm/madvise: add cond_resched() in\nmadvise_cold_or_pageout_pte_range()\")).  The THP branch never received\nequivalent treatment.\n\nFix by adding cond_resched() at the huge_unlock exit path after\nspin_unlock(ptl) and reclaim_pages(), which is the single exit point for\nall goto paths in the THP branch.\n\nCrash log:\n  watchdog: BUG: soft lockup - CPU#63 stuck for 23s! [stress-ng-vm:1665914]\n  ...\n  Call trace:\n  pmdp_invalidate+0x48/0x68\n  madvise_cold_or_pageout_pte_range+0x84c/0xb00\n  walk_pmd_range.isra.0+0x1ac/0x3b0\n  walk_pud_range+0x120/0x190\n  walk_pgd_range+0x170/0x1b8\n  __walk_page_range+0x184/0x198\n  walk_page_range_vma+0x94/0x128\n  madvise_cold+0xd8/0x198\n  madvise_vma_behavior+0x234/0x638\n  madvise_walk_vmas.constprop.0+0xdc/0x210\n  madvise_do_behavior+0xa8/0x328\n  do_madvise+0xd8/0x140\n  __arm64_sys_madvise+0x2c/0xe0"}],"providerMetadata":{"dateUpdated":"2026-12-02T09:21:59.039Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bd3ecd4aed37333d6d615ec7549c094dab5d7f4e"},{"url":"https://git.kernel.org/stable/c/9de0bd4816d1a609d6d7d982c9047f55466ddb86"},{"url":"https://git.kernel.org/stable/c/d9303cf6e7f4892f45445d0c96d288b0a410e6ee"},{"url":"https://git.kernel.org/stable/c/2c7352110fd434729d5d7da163e99c6022c51a58"},{"url":"https://git.kernel.org/stable/c/3ab27ef1675e42a03b68c83bb251872811a44845"},{"url":"https://git.kernel.org/stable/c/6dddcb5b8bf84da259ab32cc372d0465537097d0"},{"url":"https://git.kernel.org/stable/c/6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97"},{"url":"https://git.kernel.org/stable/c/f5cfc8e3b20ad71949a1e5623ff45882c063a71b"}],"title":"mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99922","datePublished":"2026-11-30T13:18:18.471Z","dateReserved":"2026-09-25T10:25:14.446Z","dateUpdated":"2026-12-02T09:21:59.039Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:28","lastModifiedDate":"2026-12-02 10:17:23","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99922","Ordinal":"1","Title":"mm/madvise: add cond_resched() in THP branch of madvise_cold_or_","CVE":"CVE-2026-99922","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99922","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()\n\nDuring stress testing with stress-ng on a 256-CPU system, a softlockup was\nobserved when madvise(MADV_COLD) was called on a 31GB memory region backed\nby transparent hugepages.  The region contains 15935 THP PMD entries, and\nthe softlockup was triggered after 14485 of them had been processed.\n\nThe THP branch of madvise_cold_or_pageout_pte_range() has no scheduling\npoint.  walk_pmd_range() invokes it once per 2MB PMD entry with no\ncond_resched() anywhere in the loop.  Each iteration calls\npmdp_invalidate() which issues a synchronous TLB shootdown (dsb ish)\nwaiting for all CPUs to acknowledge.  This operation can be time-consuming\nunder heavy system load, causing the accumulated time across all PMD\nentries to exceed the softlockup threshold (20s) and panic when\nsoftlockup_panic=1.  On a CONFIG_PREEMPT_NONE=y kernel, there is no other\nopportunity to reschedule during this entire traversal.\n\nThe regular PTE path already has an unconditional cond_resched() at the\nfunction tail (introduced by commit 9c276cc65a58 (\"mm: introduce\nMADV_COLD\") and commit 1a4e58cce84e (\"mm: introduce MADV_PAGEOUT\") when\nMADV_COLD and MADV_PAGEOUT were first introduced) and a conditional one\ninside the loop (commit b2f557a21bc8 (\"mm/madvise: add cond_resched() in\nmadvise_cold_or_pageout_pte_range()\")).  The THP branch never received\nequivalent treatment.\n\nFix by adding cond_resched() at the huge_unlock exit path after\nspin_unlock(ptl) and reclaim_pages(), which is the single exit point for\nall goto paths in the THP branch.\n\nCrash log:\n  watchdog: BUG: soft lockup - CPU#63 stuck for 23s! [stress-ng-vm:1665914]\n  ...\n  Call trace:\n  pmdp_invalidate+0x48/0x68\n  madvise_cold_or_pageout_pte_range+0x84c/0xb00\n  walk_pmd_range.isra.0+0x1ac/0x3b0\n  walk_pud_range+0x120/0x190\n  walk_pgd_range+0x170/0x1b8\n  __walk_page_range+0x184/0x198\n  walk_page_range_vma+0x94/0x128\n  madvise_cold+0xd8/0x198\n  madvise_vma_behavior+0x234/0x638\n  madvise_walk_vmas.constprop.0+0xdc/0x210\n  madvise_do_behavior+0xa8/0x328\n  do_madvise+0xd8/0x140\n  __arm64_sys_madvise+0x2c/0xe0","Type":"Description","Title":"mm/madvise: add cond_resched() in THP branch of madvise_cold_or_"}]}}}