mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.65, 5.19.6
- CVEs
- CVE-2022-49991
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:42 UTC · Revision 1
Source evidence
mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte
core-osv · Original sourcePublished 18 Jun 2025, 11:00 UTC
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.
osv:CVE-2022-49991
Kernel
Fixed versions: 5.15.65, 5.19.6
Complete source record
{
"id": "efccbc08a94b63accc81c868e838ed8d09a815db0bdc48fb01330346edf16db3",
"url": "https://osv.dev/vulnerability/CVE-2022-49991",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte",
"summary": "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.",
"evidence": "osv:CVE-2022-49991",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.65",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-49991",
"aliases": [
"CVE-2022-49991"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f619147104c8ea71e120e4936d2b68ec11a1e527"
},
{
"fixed": "da60ddd80d09f8371fbba1a238a4b318d13ba698"
},
{
"fixed": "3ada1b3e58db255a14ec73a59d7913e84dc5a8a4"
},
{
"fixed": "ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49991.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.13.0"
},
{
"fixed": "5.15.65"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49991.json"
}
}
],
"modified": "2026-10-28T02:30:29.977387760Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/3ada1b3e58db255a14ec73a59d7913e84dc5a8a4",
"https://git.kernel.org/stable/c/ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6",
"https://git.kernel.org/stable/c/da60ddd80d09f8371fbba1a238a4b318d13ba698",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49991.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49991",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49991.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49991",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496469,
"published_at": "2025-06-18T11:00:51.745+00:00"
}