In the Linux kernel, the following vulnerability has been resolved: mm: clear uffd-wp PTE/PMD state on mremap() When mremap()ing a memory region previously registered with userfaultfd as write-protec…
- CVSS
- 5.5Medium
- Chance of exploitation (EPSS)
- —
- Published
- Feb 12, 2025
- In the news
- 9 stories
What to do
A moderate security flaw in Linux kernel that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Affected versions
- Linux
- 5.7
Description
In the Linux kernel, the following vulnerability has been resolved:
mm: clear uffd-wp PTE/PMD state on mremap()
When mremap()ing a memory region previously registered with userfaultfd as
write-protected but without UFFD_FEATURE_EVENT_REMAP, an inconsistency in
flag clearing leads to a mismatch between the vma flags (which have
uffd-wp cleared) and the pte/pmd flags (which do not have uffd-wp
cleared). This mismatch causes a subsequent mprotect(PROT_WRITE) to
trigger a warning in page_table_check_pte_flags() due to setting the pte
to writable while uffd-wp is still set.
Fix this by always explicitly clearing the uffd-wp pte/pmd flags on any
such mremap() so that the values are consistent with the existing clearing
of VM_UFFD_WP. Be careful to clear the logical flag regardless of its
physical form; a PTE bit, a swap PTE bit, or a PTE marker. Cover PTE,
huge PMD and hugetlb paths.
Affected products
Get alerts for these →Timeline 12
Latest change: USN-9192-1: Linux kernel (NVIDIA) vulnerabilities (Nov 24, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Tue, Nov 24, 2026
- AdvisoryUSN-9192-1: Linux kernel (NVIDIA) vulnerabilitiesUbuntu · 08:42 UTC
- AdvisoryUSN-9191-1: Linux kernel (Azure) vulnerabilitiesUbuntu · 08:42 UTC
- AdvisoryUSN-9173-3: Linux kernel (NVIDIA) vulnerabilitiesUbuntu · 08:41 UTC
- AdvisoryUSN-9174-2: Linux kernel (Low Latency NVIDIA) vulnerabilitiesUbuntu · 08:40 UTC
Fri, Nov 20, 2026
- AdvisoryUSN-9183-1: Linux kernel (FIPS) vulnerabilitiesUbuntu · 15:34 UTC
- AdvisoryUSN-9173-2: Linux kernel vulnerabilitiesUbuntu · 15:33 UTC
Thu, Nov 19, 2026
- AdvisoryUSN-9175-1: Linux kernel (Oracle) vulnerabilitiesUbuntu · 15:43 UTC
- AdvisoryUSN-9173-1: Linux kernel vulnerabilitiesUbuntu · 15:13 UTC
- AdvisoryUSN-9174-1: Linux kernel (GCP FIPS) vulnerabilitiesUbuntu · 15:12 UTC
Sun, Nov 15, 2026
Wed, Feb 12, 2025
- CVECVE-2025-21696 published (CVSS 5.5)CVE Program · 14:15 UTC
References 4
- git.kernel.org Patch /stable/c/0cef0bb836e3cfe00f08f9606c72abd72fe78ca3
- git.kernel.org Patch /stable/c/310ac886d68de661c3a334198d8604b722d7fdf8
- git.kernel.org /stable/c/8e2f6ba256dd1e590addc48e6e9577bf39c482f2
- git.kernel.org /stable/c/96fed9f20481d07eba8a7fe93bc77abef178198c