Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-21696— mm: clear uffd-wp PTE/PMD state on mremap()

EPSS 0.01% · P1

Affected Version Matrix 6

VendorProductVersion RangeStatus
LinuxLinux63b2d4174c4ad1f40b48d7138e71bcb564c1fe03< 310ac886d68de661c3a334198d8604b722d7fdf8affected
63b2d4174c4ad1f40b48d7138e71bcb564c1fe03< 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3affected
5.7affected
< 5.7unaffected
6.12.11≤ 6.12.*unaffected
6.13≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-21696

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mm: clear uffd-wp PTE/PMD state on mremap()
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于在mremap()操作中未清除uffd-wp PTE/PMD状态。攻击者利用该漏洞可以导致vma标志与pte/pmd标志不匹配,触发警告。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03 ~ 310ac886d68de661c3a334198d8604b722d7fdf8 -
LinuxLinux 5.7 -

II. Public POCs for CVE-2025-21696

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-21696

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-02-12 · 7 CVEs total

CVE-2024-57951hrtimers: Handle CPU state correctly on hotplug
CVE-2025-21694fs/proc: fix softlockup in __read_vmcore (part 2)
CVE-2025-21695platform/x86: dell-uart-backlight: fix serdev race
CVE-2025-21697drm/v3d: Ensure job pointer is set to NULL after job completion
CVE-2024-57952Revert "libfs: fix infinite directory reads for offset dir"
CVE-2025-21699gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag

IV. Related Vulnerabilities

V. Comments for CVE-2025-21696

No comments yet


Leave a comment