CVE-2026-72043
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
15/08/2026
Last modified:
17/08/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()<br />
<br />
When hardware page table walker (PTW) is enabled on LoongArch, the CPU<br />
may set _PAGE_DIRTY directly in the page table entry during a write TLB<br />
miss, without going through the software TLB store handler. The software<br />
TLB store handler (tlbex.S:254) sets both _PAGE_DIRTY and_PAGE_MODIFIED<br />
together:<br />
<br />
ori t0, t0, (_PAGE_VALID | _PAGE_DIRTY | _PAGE_MODIFIED)<br />
<br />
Since hardware PTW only sets _PAGE_DIRTY, the software-only bit, i.e.<br />
_PAGE_MODIFIED is left unchanged. This creates a window where a PTE has<br />
_PAGE_DIRTY set (hardware knows the page is dirty) but _PAGE_MODIFIED<br />
clear (software is unaware).<br />
<br />
When fork()/clone() triggers copy-on-write, __copy_present_ptes() calls<br />
pte_wrprotect(), which unconditionally clears both the _PAGE_WRITE and<br />
_PAGE_DIRTY bits:<br />
<br />
pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY);<br />
<br />
Since _PAGE_MODIFIED was never set, the dirtiness information is lost<br />
completely. Subsequently, when memory pressure triggers page reclaim,<br />
page_mkclean() / try_to_unmap() sees the page as clean (i.e. pte_dirty()<br />
returns false) and the page may be freed without writeback, causing data<br />
corruption.<br />
<br />
Fix this by propagating the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in<br />
both pte_wrprotect() and pmd_wrprotect() before clearing writeable bits:<br />
<br />
if (pte_val(pte) & _PAGE_DIRTY)<br />
pte_val(pte) |= _PAGE_MODIFIED;<br />
<br />
The pmd_wrprotect() fix handles the CONFIG_TRANSPARENT_HUGEPAGE case,<br />
where pmd entries need the same treatment.<br />
<br />
This ensures the software dirty tracking bit (checked by pte_dirty() and<br />
pmd_dirty(), which read both the _PAGE_DIRTY and _PAGE_MODIFIED bits) is<br />
preserved across fork COW write-protection.<br />
<br />
The issue was found by the LTP madvise09 test case, which exercises page<br />
reclaim after "madvise(MADV_FREE), write and fork" operation sequence on<br />
private anonymous mappings.
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/018e9828eb523c638fa3d9bdf0fd4956b74555b2
- https://git.kernel.org/stable/c/39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9
- https://git.kernel.org/stable/c/76f88650763a35cbf1384c65d66d096fa31cc58d
- https://git.kernel.org/stable/c/a65f49b6f7ece756394f8f0e85570020e7fd0e35
- https://git.kernel.org/stable/c/e483da960892c41fa7f0cf0d2fc2410d65a483d6
- https://git.kernel.org/stable/c/e8a916579e427af32f2de8213dfa23c5df6e6664


