# CVE-2024-36943: fs/proc/task_mmu: fix loss of young/dirty bits during pagemap scan

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-05-30T15:35:42.119Z
- Modified: 2026-08-05T11:32:11.488Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

fs/proc/task_mmu: fix loss of young/dirty bits during pagemap scan

make_uffd_wp_pte() was previously doing:

  pte = ptep_get(ptep);
  ptep_modify_prot_start(ptep);
  pte = pte_mkuffd_wp(pte);
  ptep_modify_prot_commit(ptep, pte);

But if another thread accessed or dirtied the pte between the first 2
calls, this could lead to loss of that information.  Since
ptep_modify_prot_start() gets and clears atomically, the following is the
correct pattern and prevents any possible race.  Any access after the
first call would see an invalid pte and cause a fault:

  pte = ptep_modify_prot_start(ptep);
  pte = pte_mkuffd_wp(pte);
  ptep_modify_prot_commit(ptep, pte);

(As written by CVE List.)

## Affected

- Linux Linux: from 52526ca7fdb905a768a93f8faa418e9b988fc34b before 74b3d66f91d9f539f99faad74d796fa9a389a015; from 52526ca7fdb905a768a93f8faa418e9b988fc34b before c70dce4982ce1718bf978a35f8e26160b82081f4; 6.7 (not affected: before 6.7; from 6.8.10 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.7 before 6.8.10; 6.9

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/74b3d66f91d9f539f99faad74d796fa9a389a015> (patch)
- <https://git.kernel.org/stable/c/c70dce4982ce1718bf978a35f8e26160b82081f4> (patch)

## Sources

- CVE List: [CVE-2024-36943](https://www.cve.org/CVERecord?id=CVE-2024-36943), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-36943](https://nvd.nist.gov/vuln/detail/CVE-2024-36943), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-36943 · Whole record: https://cve.day/CVE-2024-36943.json · Rebuilt by cve.day 2026-11-25T22:58:41.294Z
