PT-2026-162885

CVE-2026-99918

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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 |
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾