Impact
A flaw in the Linux kernel’s handling of page state during MADV_FREE and THP operations causes user-space data to be discarded when the kernel clears the dirty bit on a page- middle directory (PMD). This bug leads to loss of data that has been written after a MADV_FREE call, a memory pressure reclaim, or a NUMA hint, resulting in integrity violations for applications that rely on those pages. The technical root is that the implementation of pmd_modify() masks away the hardware‑dirty flag, preventing the subsequent pmd_mksaveddirty() routine from saving the dirty bit. Because the dirty flag is never restored, the kernel may reclaim the page as clean and free it, discarding any user modifications. Although the bug is data‑integrity focused rather than disclosure or unauthorized access, local users on a system running an affected kernel can inadvertently corrupt or lose important data by triggering the conditions that activate the flaw.
Affected Systems
The vulnerability affects all Linux kernel versions before the posted patch, regardless of distribution. No specific version range is listed, so any system running a pre‑patch kernel may be at risk. The affected component is the kernel’s virtual memory manager for the x86 architecture, specifically the handling of PMD entries during page protection and freeing operations. Administrators should verify whether their kernel includes the commit that fixes the issue and consider the risk for applications using THP and MADV_FREE.
Risk and Exploitability
The CVSS score is not provided, and the EPSS score is unavailable, but the vulnerability is not listed in the CISA KEV catalog. The flaw requires local access to code that forces memory pressure or uses the described system calls; therefore it is unlikely to be exposed as a remote exploit. The condition is highly specific, suggesting a moderate risk to systems that routinely use THP and aggressively reclaim memory. The missing dirty flag may lead to silent data loss, making detection difficult. The best mitigation is to ensure the kernel has the fixed patch applied before any exploitation can occur.
OpenCVE Enrichment