CVE-2026-72043
published high CVSS 3.1 · 7.1LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 76f88650763a35cbf1384c65d66d096fa31cc58d · 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < e8a916579e427af32f2de8213dfa23c5df6e6664 · 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9 · 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < a65f49b6f7ece756394f8f0e85570020e7fd0e35 · 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < e483da960892c41fa7f0cf0d2fc2410d65a483d6 · 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 018e9828eb523c638fa3d9bdf0fd4956b74555b2 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.19 (affected) · 0 to < 5.19 (unaffected · semver) · 6.1.178 through 6.1.* (unaffected · semver) · 6.6.145 through 6.6.* (unaffected · semver) · 6.12.97 through 6.12.* (unaffected · semver) · 6.18.40 through 6.18.* (unaffected · semver) · 7.1.5 through 7.1.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: AV:L - The bug is triggered via local syscalls (mmap/madvise/write/fork or clone) through dup_mmap()->copy_page_range()->pte_wrprotect() on LoongArch; it is not reachable from network-facing kernel services. AC:L - An unprivileged attacker can reliably reproduce the LTP madvise09 sequence (MADV_FREE, write, fork, then force reclaim) on LoongArch CPUs with hardware PTW; no races or victim-specific state beyond attacker-controlled memory pressure are required. PR:L - No special capabilities are needed; any local user can create private anonymous or file-backed COW mappings, write them, fork, and drive page reclaim using standard unprivileged syscalls. UI:N - Exploitation requires no action from another user; the attacker controls the full trigger sequence in their own process or in a service worker they operate. S:U - Impact is confined to kernel memory-management integrity on the host; it does not constitute a VM escape, sandbox escape, or IOMMU/DMA boundary bypass. C:H - Incorrectly treating hardware-dirty pages as clean during reclaim can free page frames without writeback or swap, leaving prior contents in the buddy allocator for reuse by other mappings and enabling cross-process information disclosure. I:H - Lost dirty tracking causes silent discard of modified pages during reclaim without writeback, corrupting private anonymous data and file-backed COW mappings when dirty pages are freed or swapped incorrectly. A:N - The defect causes silent data corruption rather than kernel oops, panic, or hang; the system remains operational even when pages are incorrectly reclaimed.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 76f88650763a35cbf1384c65d66d096fa31cc58d (affected · git)09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < e8a916579e427af32f2de8213dfa23c5df6e6664 (affected · git)09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9 (affected · git)09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < a65f49b6f7ece756394f8f0e85570020e7fd0e35 (affected · git)09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < e483da960892c41fa7f0cf0d2fc2410d65a483d6 (affected · git)09cfefb7fa70c3af011b0db0a513fd80b2f18abc to < 018e9828eb523c638fa3d9bdf0fd4956b74555b2 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.19 (affected)0 to < 5.19 (unaffected · semver)6.1.178 through 6.1.* (unaffected · semver)6.6.145 through 6.6.* (unaffected · semver)6.12.97 through 6.12.* (unaffected · semver)6.18.40 through 6.18.* (unaffected · semver)7.1.5 through 7.1.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- 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
Provider assertions
1Linux · cna
LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d678ba9c12835d1ba9c2d4613c6e698e360dc415377f7e4e394ff608a4ea5f33
- Ingested
- 23 Sep 2026, 09:29:55 UTC
- Source record
- Official CVE record