# CVE-2026-72175: fs/proc/task\_mmu: fix make\_uffd\_wp\_huge\_pte() prot-update race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-15T05:53:40.011Z
- **Modified:** 2026-10-16T19:17:13.127Z

## Who should check

- Anyone running Linux \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 50a25249a6355db74c2c1b6be541b4caab9f3655; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6b7f774b8882445d9174681747d37c42548686a4; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 04718f7c9290f95385f0dd328758753dc1c36dec
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/proc/task\_mmu: fix make\_uffd\_wp\_huge\_pte() prot-update race

Patch series "userfaultfd/pagemap: pre-existing fixes".

These are pre-existing bug fixes that were carried at the front of the
userfaultfd RWP working-set-tracking series up to v5 \[1\].  Per review
feedback that fixes should not sit in the middle of a feature series, they
are split out and sent on their own; the RWP series is reposted rebased on
top of this.

All six were flagged by the Sashiko AI review of the RWP series and carry
independent of RWP, apply to mm-new directly, and carry Cc: stable@.

  1: fs/proc/task\_mmu: a missing huge\_ptep\_modify\_prot\_start() in
     make\_uffd\_wp\_huge\_pte() can lose hardware Dirty/Accessed updates
     when PAGEMAP\_SCAN write-protects a hugetlb PTE.

  2: fs/proc/task\_mmu: pagemap\_scan\_hugetlb\_entry() compares the range
     against HPAGE\_SIZE rather than the hstate page size, so it never
     write-protects gigantic hugetlb pages.

  3: fs/proc/task\_mmu: PAGEMAP\_SCAN with PM\_SCAN\_WP\_MATCHING over an
     unpopulated hugetlb range self-deadlocks -- pagemap\_scan\_pte\_hole()
     calls uffd\_wp\_range() while walk\_hugetlb\_range() holds the hugetlb
     vma lock for read, and hugetlb\_change\_protection() then takes it
     for write. Install the marker inline instead.

  4: mm/huge\_memory: change\_non\_present\_huge\_pmd() drops pmd\_swp\_uffd\_wp
     on a device-private PMD permission downgrade, silently losing the
     uffd-wp marker.

  5: userfaultfd: must\_wait() applies pte\_write() to a locklessly read
     PTE without checking pte\_present(), so swap/migration entries
     decode random offset bits and a thread can stay parked on a stale
     fault.

  6: userfaultfd: \_\_VMA\_UFFD\_FLAGS feeds VMA\_UFFD\_MINOR\_BIT (41) to
     mk\_vma\_flags() unconditionally, an out-of-bounds write into the
     single-word vma\_flags\_t on 32-bit. Build the mask from config-gated
     per-mode masks so an unavailable bit is never materialised.


This patch (of 6):

make\_uffd\_wp\_huge\_pte() arms the UFFD\_WP bit on a present HugeTLB PTE by
calling huge\_ptep\_modify\_prot\_commit() with a ptent snapshot that was
fetched without the corresponding huge\_ptep\_modify\_prot\_start().  The
start helper is what atomically clears the entry so the kernel-owned
snapshot stays consistent until the commit; without it, the hardware may
set Dirty or Accessed in the live PTE between the original read and the
commit, and huge\_ptep\_modify\_prot\_commit() (whose generic implementation
just calls set\_huge\_pte\_at()) then writes the stale snapshot back over the
live hardware bits, losing the update.

The non-hugetlb sibling make\_uffd\_wp\_pte() does this correctly via
ptep\_modify\_prot\_start() / ptep\_modify\_prot\_commit().  Mirror that pattern
for the present-PTE branch.  The migration case stays as-is -- migration
entries are non-present, so there's no hardware update to race against.

## Affected and fixed versions

- Linux: \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 50a25249a6355db74c2c1b6be541b4caab9f3655; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6b7f774b8882445d9174681747d37c42548686a4; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 04718f7c9290f95385f0dd328758753dc1c36dec (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 04718f7c9290f95385f0dd328758753dc1c36dec or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72175. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72175.md
Affected: Linux >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 50a25249a6355db74c2c1b6be541b4caab9f3655; >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab; >= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 6b7f774b8882445d9174681747d37c42548686a4; >= 52526ca7fdb905a768a93f8…
Fixed in: Linux 50a25249a6355db74c2c1b6be541b4caab9f3655, Linux 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab, Linux 6b7f774b8882445d9174681747d37c42548686a4, Linux 04718f7c9290f95385f0dd328758753dc1c36dec

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72175 being exploited?

There is no confirmed exploitation: CVE-2026-72175 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72175?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-72175?

Linux \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 50a25249a6355db74c2c1b6be541b4caab9f3655; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 6b7f774b8882445d9174681747d37c42548686a4; \>= 52526ca7fdb905a768a93f8faa418e9b988fc34b, \< 04718f7c9290f95385f0dd328758753dc1c36dec; Linux 6.7.

### Is there a fix for CVE-2026-72175?

Yes. Fixed in Linux 50a25249a6355db74c2c1b6be541b4caab9f3655, Linux 8e39ed92d7c5c6bfc08dc45153916f49a4e98bab, Linux 6b7f774b8882445d9174681747d37c42548686a4, Linux 04718f7c9290f95385f0dd328758753dc1c36dec. Upgrade Linux to 04718f7c9290f95385f0dd328758753dc1c36dec or later.

### How do I check if I'm affected by CVE-2026-72175?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/50a25249a6355db74c2c1b6be541b4caab9f3655>
- other: <https://git.kernel.org/stable/c/8e39ed92d7c5c6bfc08dc45153916f49a4e98bab>
- other: <https://git.kernel.org/stable/c/6b7f774b8882445d9174681747d37c42548686a4>
- other: <https://git.kernel.org/stable/c/04718f7c9290f95385f0dd328758753dc1c36dec>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72175>

HTML: <https://flawdb.com/CVE-2026-72175> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72175>
