CVE-2026-99918: Linux kernel · mm/madvise: atomically clear the young bit on THP MADV_COLD
Affects Linux kernelSource GCVE Database
Not known to be exploited.
Data as of 2 Dec 2026, 17:31 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or noneExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
In the Linux kernel, the following vulnerability has been resolved: mm/madvise: atomically clear the young bit on THP MADV_COLD As-is, madvise_cold_or_pageout_pte_range() discards the hardware young bit by invalidating the PMD, doing pmd_mkold() and subsequently writing to the pmd again. However, it does so in a racy manner, looking at a possibly-stale snapshot. It's entirely possible that a write elsewhere set the hardware D bit, which this logic now loses. Fix it by using pmdp_test_and_clear_young(). This is an atomic modification of the PMD entry, and thus safe against any possible racing writes. As a (nice) side-effect, this elides one non-required TLB flush in pmdp_invalidate(). This bug can interact with the swapping system in complicated ways, leading to data loss. For instance, if a folio is marked lazyfree, but was later read from, and then MADV_COLD'd while racing a write to that same THP, dropping the dirty bit may lead to data loss as reclaim/MADV_PAGEOUT drops the "clean" anon folio: T0 T1 ================================================================ MADV_FREE(thp) | folio marked lazyfree | read(thp) | PMD marked young by hardware | | MADV_COLD(thp) write(thp) | if (pmd_young(pmd)) { PMD marked dirty by hardware | set(pmdp, pmd_mkold(pmd)); MADV_PAGEOUT/reclaim | dirty bit may or may not be | set | reclaim/pageout may drop | the folio |
References
- ubuntu.com/security/CVE-2026-99918 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-99918 (opens in a new tab)
- git.kernel.org/stable/c/246c8cc33438a71c28f9b86baa492d9a0a130316 (opens in a new tab)
- git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda (opens in a new tab)
- git.kernel.org/stable/c/9eeed293486a5389bc07232613ed57e875c5bdd8 (opens in a new tab)
- git.kernel.org/stable/c/be6be6707c2953dc4ee979e7e4605fe436d87429 (opens in a new tab)
- git.kernel.org/stable/c/5a4d557c02049f75c260dd5492c6e1961e49e77e (opens in a new tab)
- git.kernel.org/stable/c/866940b1ccbf8061528986484eac73e44f8a1c52 (opens in a new tab)
- git.kernel.org/stable/c/be48a2b1253655b4f4fdde4c950ff5c87f2ec51a (opens in a new tab)
- git.kernel.org/stable/c/fe34430e1f0c5788160508da2265d904c6afab83 (opens in a new tab)