{"identifier":"CVE-2026-99918","cve":{"id":"CVE-2026-99918","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/madvise: atomically clear the young bit on THP MADV_COLD\n\nAs-is, madvise_cold_or_pageout_pte_range() discards the hardware young bit\nby invalidating the PMD, doing pmd_mkold() and subsequently writing to the\npmd again.  However, it does so in a racy manner, looking at a\npossibly-stale snapshot.  It's entirely possible that a write elsewhere\nset the hardware D bit, which this logic now loses.\n\nFix it by using pmdp_test_and_clear_young().  This is an atomic\nmodification of the PMD entry, and thus safe against any possible racing\nwrites.  As a (nice) side-effect, this elides one non-required TLB flush\nin pmdp_invalidate().\n\nThis bug can interact with the swapping system in complicated ways,\nleading to data loss.  For instance, if a folio is marked lazyfree, but\nwas later read from, and then MADV_COLD'd while racing a write to that\nsame THP, dropping the dirty bit may lead to data loss as\nreclaim/MADV_PAGEOUT drops the \"clean\" anon folio:\n\nT0                                T1\n================================================================\nMADV_FREE(thp)\t\t\t|\n  folio marked lazyfree\t\t|\nread(thp)\t\t\t|\n  PMD marked young by hardware\t|\n\t\t\t\t| MADV_COLD(thp)\nwrite(thp)\t\t\t|   if (pmd_young(pmd)) {\n  PMD marked dirty by hardware\t|     set(pmdp, pmd_mkold(pmd));\nMADV_PAGEOUT/reclaim\t\t|\n  dirty bit may or may not be   |\n  set\t\t\t\t|\n    reclaim/pageout may drop    |\n    the folio\t\t\t|","published":"2026-11-30T14:20:27.877000+00:00","modified":"2026-11-30T14:20:27.877000+00:00","status":"Received","score":null,"severity":"UNSCORED","vector":"","cvss_version":"","affected":[],"weaknesses":[],"references":[{"url":"https://git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/246c8cc33438a71c28f9b86baa492d9a0a130316","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5a4d557c02049f75c260dd5492c6e1961e49e77e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/866940b1ccbf8061528986484eac73e44f8a1c52","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/9eeed293486a5389bc07232613ed57e875c5bdd8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/be48a2b1253655b4f4fdde4c950ff5c87f2ec51a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/be6be6707c2953dc4ee979e7e4605fe436d87429","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fe34430e1f0c5788160508da2265d904c6afab83","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}],"kev":null,"kev_checked":true,"metrics":{},"configurations":[],"source":"nvd","retrieved_at":"2026-11-30T16:30:21.062254+00:00","exploited":false,"kev_stale":false,"products":[],"priority":{"label":"Assess exposure and vendor guidance","reasons":["No higher-priority signal is available in the current stored evidence."]},"epss":{"probability":0.00326,"percentile":0.27655,"date":"2026-12-04","stale":false},"version_assessment":null},"news":[],"campaigns":[],"domains":[{"domain":"git.kernel.org","source_url":"https://git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda","investigate_url":"https://investigate.aeglixmind.com/#git.kernel.org"}],"arsenal_url":"https://arsenal.aeglixmind.com/?cve=CVE-2026-99918","catalog_url":"https://cves.aeglixmind.com/cve/CVE-2026-99918","research_url":"https://investigate.aeglixmind.com/research/cve/CVE-2026-99918","coverage":{"news_candidates_checked":0,"campaign_candidates_checked":0,"bounded":false,"notice":"Exact CVE mentions in stored public excerpts and reviewed campaign content only. A mention is not proof of exploitation, attribution or tool suitability. Missing matches do not establish absence."}}