Linux Kernel Userfaultfd Write-Protect Flag Inconsistency Vulnerability in Memory Remapping

Vulnerability

A vulnerability in the Linux kernel's memory management can lead to inconsistencies when remapping memory regions that are registered with userfaultfd as write-protected. This issue arises because the flags indicating the write-protected state are not properly synchronized between the virtual memory area (VMA) and the page table entries (PTE/PMD). As a result, a subsequent attempt to change the protection to writable can trigger a warning, creating potential disruptions in memory management.

Impact

Exploitation of this vulnerability can cause warnings and inconsistencies in memory protection management, potentially leading to improper handling of memory write permissions.

Remediation

The vulnerability has been addressed by ensuring that the userfaultfd write-protect flags in the page table entries are consistently cleared during the memory remapping process, aligning them with the existing virtual memory area flags.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.