{"id":"CVE-2024-42233","published":"2024-08-07T15:14:23Z","modified":"2026-08-05T11:35:58Z","title":"filemap: replace pte_offset_map() with pte_offset_map_nolock()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfilemap: replace pte_offset_map() with pte_offset_map_nolock()\n\nThe vmf->ptl in filemap_fault_recheck_pte_none() is still set from\nhandle_pte_fault().  But at the same time, we did a pte_unmap(vmf->pte). \nAfter a pte_unmap(vmf->pte) unmap and rcu_read_unlock(), the page table\nmay be racily changed and vmf->ptl maybe fails to protect the actual page\ntable.  Fix this by replacing pte_offset_map() with\npte_offset_map_nolock().\n\nAs David said, the PTL pointer might be stale so if we continue to use\nit infilemap_fault_recheck_pte_none(), it might trigger UAF.  Also, if\nthe PTL fails, the issue fixed by commit 58f327f2ce80 (\"filemap: avoid\nunnecessary major faults in filemap_fault()\") might reappear.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00192,"percentile":0.09049,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6a6c2aec1a89506595801b4cf7e8eef035f33748","tags":[]},{"url":"https://git.kernel.org/stable/c/24be02a42181f0707be0498045c4c4b13273b16d","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.81},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 58f327f2ce80f9c7b4a70e9cf017ae8810d44a20, < 6a6c2aec1a89506595801b4cf7e8eef035f33748",">= 58f327f2ce80f9c7b4a70e9cf017ae8810d44a20, < 24be02a42181f0707be0498045c4c4b13273b16d"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:14:13.816205Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39609","exploited":false,"provenance":"source"}}