Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect() When… (CVE-2026-72043)
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 _PAGE_DIRTY 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 _PAGE_DIRTY and_PAGE_MODIFIED together: ori t0, t0, (_PAGE_VALID | _PAGE_DIRTY | _PAGE_MODIFIED) Since hardware PTW only sets _PAGE_DIRTY, the software-only bit, i.e. _PAGE_MODIFIED is left unchanged. This creates a window where a PTE has _PAGE_DIRTY set (hardware knows the page is dirty) but _PAGE_MODIFIED clear (software is unaware). When fork()/clone() triggers copy-on-write, __copy_present_ptes() calls pte_wrprotect(), which unconditionally clears both the _PAGE_WRITE and _PAGE_DIRTY bits: pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); Since _PAGE_MODIFIED was never set, the dirtiness information is lost completely. Subsequently, when memory pressure triggers page reclaim, page_mkclean() / try_to_unmap() sees the page as clean (i.e. pte_dirty() returns false) and the page may be freed without writeback, causing data corruption. Fix this by propagating the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in both pte_wrprotect() and pmd_wrprotect() before clearing writeable bits: if (pte_val(pte) & _PAGE_DIRTY) pte_val(pte) |= _PAGE_MODIFIED; The pmd_wrprotect() fix handles the CONFIG_TRANSPARENT_HUGEPAGE case, where pmd entries need the same treatment. This ensures the software dirty tracking bit (checked by pte_dirty() and pmd_dirty(), which read both the _PAGE_DIRTY and _PAGE_MODIFIED bits) is preserved across fork COW write-protection. The issue was found by the LTP madvise09 test case, which exercises page reclaim after "madvise(MADV_FREE), write and fork" operation sequence on private anonymous mappings.
AI Analysis
Technical Summary
The Linux kernel on LoongArch had a flaw where the hardware page table walker sets the _PAGE_DIRTY bit in page table entries during write TLB misses without setting the software-only _PAGE_MODIFIED bit. The software TLB store handler sets both bits, but hardware PTW does not, creating a state where the kernel's software tracking misses dirty pages. During fork()/clone() with copy-on-write, the kernel clears _PAGE_WRITE and _PAGE_DIRTY bits but does not set _PAGE_MODIFIED if it was never set, causing loss of dirty page tracking. Consequently, page reclaim may treat dirty pages as clean and free them without writeback, risking data corruption. The fix propagates the _PAGE_DIRTY bit to _PAGE_MODIFIED in pte_wrprotect() and pmd_wrprotect(), preserving software dirty tracking across write protection. This fix also covers transparent huge pages. The issue was discovered via the LTP madvise09 test case.
Potential Impact
The vulnerability can cause data corruption due to the kernel incorrectly treating dirty pages as clean and freeing them without writing back to storage. This affects systems running the Linux kernel on LoongArch architecture with hardware page table walker enabled. There is no indication of active exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source to propagate the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in pte_wrprotect() and pmd_wrprotect() functions. Users should apply the official Linux kernel updates that include this fix. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the input data; check the Linux kernel vendor advisory or source repository for the exact fixed version and apply updates accordingly.
Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect() When… (CVE-2026-72043)
Description
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 _PAGE_DIRTY 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 _PAGE_DIRTY and_PAGE_MODIFIED together: ori t0, t0, (_PAGE_VALID | _PAGE_DIRTY | _PAGE_MODIFIED) Since hardware PTW only sets _PAGE_DIRTY, the software-only bit, i.e. _PAGE_MODIFIED is left unchanged. This creates a window where a PTE has _PAGE_DIRTY set (hardware knows the page is dirty) but _PAGE_MODIFIED clear (software is unaware). When fork()/clone() triggers copy-on-write, __copy_present_ptes() calls pte_wrprotect(), which unconditionally clears both the _PAGE_WRITE and _PAGE_DIRTY bits: pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); Since _PAGE_MODIFIED was never set, the dirtiness information is lost completely. Subsequently, when memory pressure triggers page reclaim, page_mkclean() / try_to_unmap() sees the page as clean (i.e. pte_dirty() returns false) and the page may be freed without writeback, causing data corruption. Fix this by propagating the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in both pte_wrprotect() and pmd_wrprotect() before clearing writeable bits: if (pte_val(pte) & _PAGE_DIRTY) pte_val(pte) |= _PAGE_MODIFIED; The pmd_wrprotect() fix handles the CONFIG_TRANSPARENT_HUGEPAGE case, where pmd entries need the same treatment. This ensures the software dirty tracking bit (checked by pte_dirty() and pmd_dirty(), which read both the _PAGE_DIRTY and _PAGE_MODIFIED bits) is preserved across fork COW write-protection. The issue was found by the LTP madvise09 test case, which exercises page reclaim after "madvise(MADV_FREE), write and fork" operation sequence on private anonymous mappings.
CVSS v3.1
Score 7.1high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel on LoongArch had a flaw where the hardware page table walker sets the _PAGE_DIRTY bit in page table entries during write TLB misses without setting the software-only _PAGE_MODIFIED bit. The software TLB store handler sets both bits, but hardware PTW does not, creating a state where the kernel's software tracking misses dirty pages. During fork()/clone() with copy-on-write, the kernel clears _PAGE_WRITE and _PAGE_DIRTY bits but does not set _PAGE_MODIFIED if it was never set, causing loss of dirty page tracking. Consequently, page reclaim may treat dirty pages as clean and free them without writeback, risking data corruption. The fix propagates the _PAGE_DIRTY bit to _PAGE_MODIFIED in pte_wrprotect() and pmd_wrprotect(), preserving software dirty tracking across write protection. This fix also covers transparent huge pages. The issue was discovered via the LTP madvise09 test case.
Potential Impact
The vulnerability can cause data corruption due to the kernel incorrectly treating dirty pages as clean and freeing them without writing back to storage. This affects systems running the Linux kernel on LoongArch architecture with hardware page table walker enabled. There is no indication of active exploitation in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel source to propagate the _PAGE_DIRTY bit to the _PAGE_MODIFIED bit in pte_wrprotect() and pmd_wrprotect() functions. Users should apply the official Linux kernel updates that include this fix. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the input data; check the Linux kernel vendor advisory or source repository for the exact fixed version and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-f7xg-fgxp-p6w3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-72043"]
Threat ID: 6a808b77bf8831d539501772
Added to database: 08/15/2026, 15:53:27 UTC
Last enriched: 08/15/2026, 17:06:10 UTC
Last updated: 09/30/2026, 03:13:38 UTC
Views: 30
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.