CVE-2026-72175

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
16/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> fs/proc/task_mmu: fix make_uffd_wp_huge_pte() prot-update race<br /> <br /> Patch series "userfaultfd/pagemap: pre-existing fixes".<br /> <br /> These are pre-existing bug fixes that were carried at the front of the<br /> userfaultfd RWP working-set-tracking series up to v5 [1]. Per review<br /> feedback that fixes should not sit in the middle of a feature series, they<br /> are split out and sent on their own; the RWP series is reposted rebased on<br /> top of this.<br /> <br /> All six were flagged by the Sashiko AI review of the RWP series and carry<br /> independent of RWP, apply to mm-new directly, and carry Cc: stable@.<br /> <br /> 1: fs/proc/task_mmu: a missing huge_ptep_modify_prot_start() in<br /> make_uffd_wp_huge_pte() can lose hardware Dirty/Accessed updates<br /> when PAGEMAP_SCAN write-protects a hugetlb PTE.<br /> <br /> 2: fs/proc/task_mmu: pagemap_scan_hugetlb_entry() compares the range<br /> against HPAGE_SIZE rather than the hstate page size, so it never<br /> write-protects gigantic hugetlb pages.<br /> <br /> 3: fs/proc/task_mmu: PAGEMAP_SCAN with PM_SCAN_WP_MATCHING over an<br /> unpopulated hugetlb range self-deadlocks -- pagemap_scan_pte_hole()<br /> calls uffd_wp_range() while walk_hugetlb_range() holds the hugetlb<br /> vma lock for read, and hugetlb_change_protection() then takes it<br /> for write. Install the marker inline instead.<br /> <br /> 4: mm/huge_memory: change_non_present_huge_pmd() drops pmd_swp_uffd_wp<br /> on a device-private PMD permission downgrade, silently losing the<br /> uffd-wp marker.<br /> <br /> 5: userfaultfd: must_wait() applies pte_write() to a locklessly read<br /> PTE without checking pte_present(), so swap/migration entries<br /> decode random offset bits and a thread can stay parked on a stale<br /> fault.<br /> <br /> 6: userfaultfd: __VMA_UFFD_FLAGS feeds VMA_UFFD_MINOR_BIT (41) to<br /> mk_vma_flags() unconditionally, an out-of-bounds write into the<br /> single-word vma_flags_t on 32-bit. Build the mask from config-gated<br /> per-mode masks so an unavailable bit is never materialised.<br /> <br /> <br /> This patch (of 6):<br /> <br /> make_uffd_wp_huge_pte() arms the UFFD_WP bit on a present HugeTLB PTE by<br /> calling huge_ptep_modify_prot_commit() with a ptent snapshot that was<br /> fetched without the corresponding huge_ptep_modify_prot_start(). The<br /> start helper is what atomically clears the entry so the kernel-owned<br /> snapshot stays consistent until the commit; without it, the hardware may<br /> set Dirty or Accessed in the live PTE between the original read and the<br /> commit, and huge_ptep_modify_prot_commit() (whose generic implementation<br /> just calls set_huge_pte_at()) then writes the stale snapshot back over the<br /> live hardware bits, losing the update.<br /> <br /> The non-hugetlb sibling make_uffd_wp_pte() does this correctly via<br /> ptep_modify_prot_start() / ptep_modify_prot_commit(). Mirror that pattern<br /> for the present-PTE branch. The migration case stays as-is -- migration<br /> entries are non-present, so there&amp;#39;s no hardware update to race against.