PT-2026-162885

CVE-2026-99918

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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 |
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾