CVE-2024-42233
kernel: filemap: replace pte_offset_map() with pte_offset_map_nolock()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 7, 2024
Updated · August 5, 2026
Description
In the Linux kernel, a vulnerability was fixed by replacing pte_offset_map() with pte_offset_map_nolock() in the filemap_fault_recheck_pte_none() function. The original use of pte_offset_map() relied on a potentially stale page table lock (PTL), which could lead to a use-after-free (UAF) condition if the page table was modified after a pte_unmap() operation. The replacement function, pte_offset_map_nolock(), avoids this risk by not depending on the PTL, thus ensuring safer access to the page table and preventing potential security issues.
Statement
Red Hat Enterprise Linux is not vulnerable to this CVE, as it does not affect the versions or configurations of the Linux kernel used in its distributions.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 3.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
CWE-99 · Improper Control of Resource Identifiers ('Resource Injection')