{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "bd3ecd4aed37333d6d615ec7549c094dab5d7f4e"
            },
            {
              "fixed": "9de0bd4816d1a609d6d7d982c9047f55466ddb86"
            },
            {
              "fixed": "d9303cf6e7f4892f45445d0c96d288b0a410e6ee"
            },
            {
              "fixed": "2c7352110fd434729d5d7da163e99c6022c51a58"
            },
            {
              "fixed": "3ab27ef1675e42a03b68c83bb251872811a44845"
            },
            {
              "fixed": "6dddcb5b8bf84da259ab32cc372d0465537097d0"
            },
            {
              "fixed": "6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97"
            },
            {
              "fixed": "f5cfc8e3b20ad71949a1e5623ff45882c063a71b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99922.json"
  },
  "details": "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",
  "id": "CVE-2026-99922",
  "modified": "2026-12-01T20:45:50.812446694Z",
  "published": "2026-11-30T13:18:18.471Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2c7352110fd434729d5d7da163e99c6022c51a58"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3ab27ef1675e42a03b68c83bb251872811a44845"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6a63aa1580ce7ed7c4e68f210ca6bb70aaff8b97"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6dddcb5b8bf84da259ab32cc372d0465537097d0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9de0bd4816d1a609d6d7d982c9047f55466ddb86"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd3ecd4aed37333d6d615ec7549c094dab5d7f4e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d9303cf6e7f4892f45445d0c96d288b0a410e6ee"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f5cfc8e3b20ad71949a1e5623ff45882c063a71b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99922.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99922"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()"
}