CVE-2022-49991 (GCVE-0-2022-49991)
Vulnerability from cvelistv5 – Published: 2025-06-18 11:00 – Updated: 2026-08-05 08:57
VLAI
EPSS
VEX
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.
Severity
7.8 (High)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
f619147104c8ea71e120e4936d2b68ec11a1e527 , < da60ddd80d09f8371fbba1a238a4b318d13ba698
(git)
Affected: f619147104c8ea71e120e4936d2b68ec11a1e527 , < 3ada1b3e58db255a14ec73a59d7913e84dc5a8a4 (git) Affected: f619147104c8ea71e120e4936d2b68ec11a1e527 , < ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6 (git) |
|
| Linux | Linux |
Affected:
5.13
Unaffected: 0 , < 5.13 (semver) Unaffected: 5.15.65 , ≤ 5.15.* (semver) Unaffected: 5.19.6 , ≤ 5.19.* (semver) Unaffected: 6.0 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"mm/hugetlb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "da60ddd80d09f8371fbba1a238a4b318d13ba698",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
},
{
"lessThan": "3ada1b3e58db255a14ec73a59d7913e84dc5a8a4",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
},
{
"lessThan": "ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"mm/hugetlb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.13"
},
{
"lessThan": "5.13",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.65",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"version": "5.19.6",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.0",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.65",
"versionStartIncluding": "5.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.19.6",
"versionStartIncluding": "5.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.0",
"versionStartIncluding": "5.13",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: avoid corrupting page-\u003emapping in hugetlb_mcopy_atomic_pte\n\nIn MCOPY_ATOMIC_CONTINUE case with a non-shared VMA, pages in the page\ncache are installed in the ptes. But hugepage_add_new_anon_rmap is called\nfor them mistakenly because they\u0027re not vm_shared. This will corrupt the\npage-\u003emapping used by page cache code."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Exploitation requires local syscalls: memfd_create(MFD_HUGETLB)/mmap, userfaultfd, and UFFDIO_CONTINUE. The vulnerable path is not reachable from the network stack or remote protocols.\nAC:L - The attacker fully controls the trigger sequence (populate the hugetlb page cache, MAP_PRIVATE + UFFD MINOR register, then UFFDIO_CONTINUE) with no race or other conditions outside their control.\nPR:L - An unprivileged user can create hugetlb memfds via memfd_create(MFD_HUGETLB) (HUGETLB_ANONHUGE_INODE needs no CAP_IPC_LOCK) and open userfaultfd with UFFD_USER_MODE_ONLY without privileges.\nUI:N - The attacker performs all setup and triggers UFFDIO_CONTINUE themselves; no action by another user is required.\nS:U - Impact is confined to the local kernel\u0027s memory-management authority (corruption/DoS/potential privilege escalation within the same host); it does not cross a VM or other security boundary.\nC:H - Corrupting page-\u003emapping on a page-cache hugepage into an attacker-owned anon_vma is type confusion; the page can retain a dangling anon_vma pointer after the private VMA is torn down, enabling use-after-free reads of kernel memory.\nI:H - The same mapping/type confusion and mapcount reset via hugepage_add_new_anon_rmap on an existing page-cache page yield a write primitive suitable for control-flow hijacking or privilege escalation.\nA:H - The invariant break reliably causes kernel oops/BUG_ON/panic paths in page-cache, rmap, and hugetlb teardown when the corrupted page is later used."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-05T08:57:03.320Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/da60ddd80d09f8371fbba1a238a4b318d13ba698"
},
{
"url": "https://git.kernel.org/stable/c/3ada1b3e58db255a14ec73a59d7913e84dc5a8a4"
},
{
"url": "https://git.kernel.org/stable/c/ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6"
}
],
"title": "mm/hugetlb: avoid corrupting page-\u003emapping in hugetlb_mcopy_atomic_pte",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2022-49991",
"datePublished": "2025-06-18T11:00:51.745Z",
"dateReserved": "2025-06-18T10:57:27.386Z",
"dateUpdated": "2026-08-05T08:57:03.320Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2022-49991",
"date": "2026-11-17",
"epss": "0.00274",
"percentile": "0.20063"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"mm/hugetlb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "da60ddd80d09f8371fbba1a238a4b318d13ba698",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
},
{
"lessThan": "3ada1b3e58db255a14ec73a59d7913e84dc5a8a4",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
},
{
"lessThan": "ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6",
"status": "affected",
"version": "f619147104c8ea71e120e4936d2b68ec11a1e527",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"mm/hugetlb.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.13"
},
{
"lessThan": "5.13",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.65",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.19.*",
"status": "unaffected",
"version": "5.19.6",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.0",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "70590EA7-AAB6-4DA2-AEF6-5E5E596B89DA",
"versionEndExcluding": "5.15.65",
"versionStartIncluding": "5.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "89E99903-E16D-475D-954B-2BAC46C98262",
"versionEndExcluding": "5.19.6",
"versionStartIncluding": "5.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:*",
"matchCriteriaId": "E8BD11A3-8643-49B6-BADE-5029A0117325",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:*",
"matchCriteriaId": "5F0AD220-F6A9-4012-8636-155F1B841FAD",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb: avoid corrupting page-\u003emapping in hugetlb_mcopy_atomic_pte\n\nIn MCOPY_ATOMIC_CONTINUE case with a non-shared VMA, pages in the page\ncache are installed in the ptes. But hugepage_add_new_anon_rmap is called\nfor them mistakenly because they\u0027re not vm_shared. This will corrupt the\npage-\u003emapping used by page cache code."
},
{
"lang": "es",
"value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/hugetlb: evitar la corrupci\u00f3n del mapeo de p\u00e1ginas en hugetlb_mcopy_atomic_pte. En el caso de MCOPY_ATOMIC_CONTINUE con un VMA no compartido, las p\u00e1ginas de la cach\u00e9 de p\u00e1ginas se instalan en los ptes. Sin embargo, se llama a hugepage_add_new_anon_rmap por error porque no son vm_shared. Esto corromper\u00e1 el mapeo de p\u00e1ginas utilizado por el c\u00f3digo de la cach\u00e9 de p\u00e1ginas."
}
],
"id": "CVE-2022-49991",
"lastModified": "2026-08-04T10:18:02.283",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 5.5,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 3.6,
"source": "nvd@nist.gov",
"type": "Primary"
}
]
},
"published": "2025-06-18T11:15:26.753",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/3ada1b3e58db255a14ec73a59d7913e84dc5a8a4"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/da60ddd80d09f8371fbba1a238a4b318d13ba698"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "NVD-CWE-noinfo"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-09T17:25:40+00:00",
"cve": "CVE-2022-49991",
"id": "CVE-2022-49991",
"initial_release_date": "2022-01-01T00:00:00+00:00",
"product_status:fixed": "365",
"product_status:known_affected": "36",
"product_status:known_not_affected": "77",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: mm/hugetlb: avoid corrupting page-\u003emapping in hugetlb_mcopy_atomic_pte",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49991.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-10-16T14:12:22Z",
"cve": "CVE-2022-49991",
"id": "CVE-2022-49991",
"initial_release_date": "2025-06-19T03:44:38Z",
"product_status:known_affected": "61",
"product_status:known_not_affected": "445",
"product_status:recommended": "54",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2022-49991",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-49991.json",
"version": "14"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…