cvelo
P4 · InfoEPSS 0.2%

mm/damon/vaddr: avoid hw-driven pte updates during damon_hugetlb_mkold()

  • CVE-2026-98505
  • GHSA-mr9h-5fpp-c352
  • EUVD-2026-103745

Description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/vaddr: avoid hw-driven pte updates during damon_hugetlb_mkold() damon_hugetlb_mkold() reads the page table entry into a local variable, unsets the accessed bit in the variable, and updates the page table entry with the updated variable value. If hardware updates the same page table entry in parallel, the hw updates could be lost. For example, hardware-updated dirty bits might be lost. Avoid the parallel updates by clearing the page table entry when reading it together, using huge_ptep_get_and_clear(). If a parallel write to the memory is made after the clearing, the hw will see the page table entry is cleared, trigger page fault and wait until it is handled. The page fault handling will wait for damon_hugetlb_mkold() due to the page table lock. Because hugetlbfs is an in-memory file system and hugetlb pages cannot be reclaimed, no critical issue is expected to my best knowledge. But definitely this is a nasty bug that should be fixed sooner rather than later. The issue was discovered [1] by Sashiko.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    5.17none stated
    before 5.17: not affectednone stated
    from 6.1.193 up to 6.1.*: not affectednone stated
    from 6.6.160 up to 6.6.*: not affectednone stated
    from 6.12.112 up to 6.12.*: not affectednone stated
    from 6.18.55 up to 6.18.*: not affectednone stated
    from 7.2.9 up to 7.2.*: not affectednone stated
    from 7.3 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.