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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-15T05:52:02.505Z
- **Modified:** 2026-08-17T06:18:02.257Z

## Who should check

- Anyone running Linux \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 76f88650763a35cbf1384c65d66d096fa31cc58d; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e8a916579e427af32f2de8213dfa23c5df6e6664; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< a65f49b6f7ece756394f8f0e85570020e7fd0e35; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e483da960892c41fa7f0cf0d2fc2410d65a483d6; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 018e9828eb523c638fa3d9bdf0fd4956b74555b2
- Anyone running Linux 5.19

## 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.

## Affected and fixed versions

- Linux: \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 76f88650763a35cbf1384c65d66d096fa31cc58d; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e8a916579e427af32f2de8213dfa23c5df6e6664; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< a65f49b6f7ece756394f8f0e85570020e7fd0e35; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e483da960892c41fa7f0cf0d2fc2410d65a483d6; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 018e9828eb523c638fa3d9bdf0fd4956b74555b2 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 018e9828eb523c638fa3d9bdf0fd4956b74555b2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72043. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72043.md
Affected: Linux >= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, < 76f88650763a35cbf1384c65d66d096fa31cc58d; >= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, < e8a916579e427af32f2de8213dfa23c5df6e6664; >= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, < 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9; >= 09cfefb7fa70c3af011b0db…
Fixed in: Linux 76f88650763a35cbf1384c65d66d096fa31cc58d, Linux 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9, Linux 018e9828eb523c638fa3d9bdf0fd4956b74555b2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72043 being exploited?

There is no confirmed exploitation: CVE-2026-72043 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72043?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-72043?

Linux \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 76f88650763a35cbf1384c65d66d096fa31cc58d; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e8a916579e427af32f2de8213dfa23c5df6e6664; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< a65f49b6f7ece756394f8f0e85570020e7fd0e35; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< e483da960892c41fa7f0cf0d2fc2410d65a483d6; \>= 09cfefb7fa70c3af011b0db0a513fd80b2f18abc, \< 018e9828eb523c638fa3d9bdf0fd4956b74555b2; Linux 5.19.

### Is there a fix for CVE-2026-72043?

Yes. Fixed in Linux 76f88650763a35cbf1384c65d66d096fa31cc58d, Linux 39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9, Linux 018e9828eb523c638fa3d9bdf0fd4956b74555b2. Upgrade Linux to 018e9828eb523c638fa3d9bdf0fd4956b74555b2 or later.

### How do I check if I'm affected by CVE-2026-72043?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/76f88650763a35cbf1384c65d66d096fa31cc58d>
- other: <https://git.kernel.org/stable/c/e8a916579e427af32f2de8213dfa23c5df6e6664>
- other: <https://git.kernel.org/stable/c/39bb21a4bff0d70058bf752d7b5aa2e2ccc864a9>
- other: <https://git.kernel.org/stable/c/a65f49b6f7ece756394f8f0e85570020e7fd0e35>
- other: <https://git.kernel.org/stable/c/e483da960892c41fa7f0cf0d2fc2410d65a483d6>
- other: <https://git.kernel.org/stable/c/018e9828eb523c638fa3d9bdf0fd4956b74555b2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72043>

HTML: <https://flawdb.com/CVE-2026-72043> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72043>
