CVE-2026-72043: LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()

Published Aug 15, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: Fix missing dirty page tracking in {pte,pmd}wrprotect()

When hardware page table walker (PTW) is enabled on LoongArch, the CPU may set PAGEDIRTY directly in the page table entry during a write TLB miss, without going through the software TLB store handler. The software TLB store handler (tlbex.S:254) sets both PAGEDIRTY andPAGEMODIFIED together:

ori t0, t0, (PAGEVALID | PAGEDIRTY | PAGEMODIFIED)

Since hardware PTW only sets PAGEDIRTY, the software-only bit, i.e. PAGEMODIFIED is left unchanged. This creates a window where a PTE has PAGEDIRTY set (hardware knows the page is dirty) but PAGEMODIFIED clear (software is unaware).

When fork()/clone() triggers copy-on-write, copypresentptes() calls ptewrprotect(), which unconditionally clears both the PAGEWRITE and PAGEDIRTY bits:

pteval(pte) &= ~(PAGEWRITE | PAGEDIRTY);

Since PAGEMODIFIED was never set, the dirtiness information is lost completely. Subsequently, when memory pressure triggers page reclaim, pagemkclean() / trytounmap() sees the page as clean (i.e. ptedirty() returns false) and the page may be freed without writeback, causing data corruption.

Fix this by propagating the PAGEDIRTY bit to the PAGEMODIFIED bit in both ptewrprotect() and pmdwrprotect() before clearing writeable bits:

if (pteval(pte) & PAGEDIRTY) pteval(pte) |= PAGEMODIFIED;

The pmdwrprotect() fix handles the CONFIGTRANSPARENTHUGEPAGE case, where pmd entries need the same treatment.

This ensures the software dirty tracking bit (checked by ptedirty() and pmddirty(), which read both the PAGEDIRTY and PAGEMODIFIED bits) is preserved across fork COW write-protection.

The issue was found by the LTP madvise09 test case, which exercises page reclaim after "madvise(MADVFREE), write and fork" operation sequence on private anonymous mappings.

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 15, 2026
CVE Published
via MITRE·05:52 AM
Data Sourced
via MITRE·05:52 AM
Description
Data Sourced
via NVD·06:21 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72043?

CVE-2026-72043 has a risk rating of 47, indicating significant potential impact.

2

How do I fix CVE-2026-72043?

To fix CVE-2026-72043, update the Linux kernel to a version where this vulnerability is resolved.

3

What software is affected by CVE-2026-72043?

CVE-2026-72043 affects the Linux kernel on systems using the LoongArch architecture.

4

What does CVE-2026-72043 impact?

CVE-2026-72043 impacts the dirty page tracking functionality in the Linux kernel's page protection mechanisms.

5

When was CVE-2026-72043 published?

CVE-2026-72043 was published on August 15, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203