# CVE-2022-49991: mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-06-18T11:00:51.745Z
- Modified: 2026-08-05T08:57:03.320Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f619147104c8ea71e120e4936d2b68ec11a1e527 before da60ddd80d09f8371fbba1a238a4b318d13ba698; from f619147104c8ea71e120e4936d2b68ec11a1e527 before 3ada1b3e58db255a14ec73a59d7913e84dc5a8a4; from f619147104c8ea71e120e4936d2b68ec11a1e527 before ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6; 5.13 (not affected: before 5.13; from 5.15.65 up to 5.15.*; from 5.19.6 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.13 before 5.15.65; from 5.16 before 5.19.6; 6.0

## Every score

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

## References

- <https://git.kernel.org/stable/c/da60ddd80d09f8371fbba1a238a4b318d13ba698> (patch)
- <https://git.kernel.org/stable/c/3ada1b3e58db255a14ec73a59d7913e84dc5a8a4> (patch)
- <https://git.kernel.org/stable/c/ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49991 · Whole record: https://cve.day/CVE-2022-49991.json · Rebuilt by cve.day 2026-11-25T22:58:20.998Z
