CVE-2022-49991
kernel: mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 18, 2025
Updated · October 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte
In MCOPY_ATOMIC_CONTINUE case with a non-shared VMA, pages in the page cache are installed in the ptes. But hugepage_add_new_anon_rmap is called for them mistakenly because they're not vm_shared. This will corrupt the page->mapping used by page cache code.
Statement
This flaw is rated as a Moderate severity impact for Red Hat Enterprise Linux because exploitation requires a local user to perform specific userfaultfd operations on non-shared HugeTLB mappings, limiting the attack surface to authenticated local processes. A local attacker could leverage this issue to trigger memory corruption within the kernel page cache structures, potentially resulting in system instability, kernel panics, or privilege escalation. Because this vulnerability cannot be triggered remotely and relies on specialized memory management interfaces, the overall blast radius is constrained under standard deployment conditions.
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
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-915 · Improperly Controlled Modification of Dynamically-Determined Object Attributes