{"id":"CVE-2026-99918","aliases":[],"cve":{"records":[{"id":"CVE-2026-99918","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.445Z","published":"2026-11-30T13:18:16.236Z","modified":"2026-11-30T13:18:16.236Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:16.236Z"}],"references":[{"url":"https://git.kernel.org/stable/c/9eeed293486a5389bc07232613ed57e875c5bdd8","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/fe34430e1f0c5788160508da2265d904c6afab83","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/be48a2b1253655b4f4fdde4c950ff5c87f2ec51a","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/866940b1ccbf8061528986484eac73e44f8a1c52","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/be6be6707c2953dc4ee979e7e4605fe436d87429","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/5a4d557c02049f75c260dd5492c6e1961e49e77e","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/246c8cc33438a71c28f9b86baa492d9a0a130316","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"mm/madvise: atomically clear the young bit on THP MADV_COLD","titleSource":"Linux","descriptionSource":"Linux","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|","score":null,"severity":"unknown","published":"2026-11-30T13:18:16.236Z","modified":"2026-11-30T13:18:16.236Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"9eeed293486a5389bc07232613ed57e875c5bdd8","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"17ee2edd085250973eb00cbd98c8b2e0f1a64eda","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"fe34430e1f0c5788160508da2265d904c6afab83","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"be48a2b1253655b4f4fdde4c950ff5c87f2ec51a","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"866940b1ccbf8061528986484eac73e44f8a1c52","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"be6be6707c2953dc4ee979e7e4605fe436d87429","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"5a4d557c02049f75c260dd5492c6e1961e49e77e","versionType":"git"},{"version":"9c276cc65a58faf98be8e56962745ec99ab87636","status":"affected","lessThan":"246c8cc33438a71c28f9b86baa492d9a0a130316","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99918"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"5.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.4","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99918"}],"remediation":[],"references":["https://git.kernel.org/stable/c/9eeed293486a5389bc07232613ed57e875c5bdd8","https://git.kernel.org/stable/c/17ee2edd085250973eb00cbd98c8b2e0f1a64eda","https://git.kernel.org/stable/c/fe34430e1f0c5788160508da2265d904c6afab83","https://git.kernel.org/stable/c/be48a2b1253655b4f4fdde4c950ff5c87f2ec51a","https://git.kernel.org/stable/c/866940b1ccbf8061528986484eac73e44f8a1c52","https://git.kernel.org/stable/c/be6be6707c2953dc4ee979e7e4605fe436d87429","https://git.kernel.org/stable/c/5a4d557c02049f75c260dd5492c6e1961e49e77e","https://git.kernel.org/stable/c/246c8cc33438a71c28f9b86baa492d9a0a130316"],"sources":[{"name":"CVE","id":"CVE-2026-99918","modified":"2026-11-30T13:18:16.236Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99918"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:00:01.691Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}