{"id":"CVE-2024-36943","published":"2024-05-30T15:35:42Z","modified":"2026-08-05T11:32:11Z","title":"fs/proc/task_mmu: fix loss of young/dirty bits during pagemap scan","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/proc/task_mmu: fix loss of young/dirty bits during pagemap scan\n\nmake_uffd_wp_pte() was previously doing:\n\n  pte = ptep_get(ptep);\n  ptep_modify_prot_start(ptep);\n  pte = pte_mkuffd_wp(pte);\n  ptep_modify_prot_commit(ptep, pte);\n\nBut if another thread accessed or dirtied the pte between the first 2\ncalls, this could lead to loss of that information.  Since\nptep_modify_prot_start() gets and clears atomically, the following is the\ncorrect pattern and prevents any possible race.  Any access after the\nfirst call would see an invalid pte and cause a fault:\n\n  pte = ptep_modify_prot_start(ptep);\n  pte = pte_mkuffd_wp(pte);\n  ptep_modify_prot_commit(ptep, pte);","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.12563,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/74b3d66f91d9f539f99faad74d796fa9a389a015","tags":[]},{"url":"https://git.kernel.org/stable/c/c70dce4982ce1718bf978a35f8e26160b82081f4","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.51},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < 74b3d66f91d9f539f99faad74d796fa9a389a015",">= 52526ca7fdb905a768a93f8faa418e9b988fc34b, < c70dce4982ce1718bf978a35f8e26160b82081f4"]},{"vendor":"Linux","product":"Linux","versions":["6.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-05T18:15:10.001170Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-36293","exploited":false,"provenance":"source"}}