GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2022-49991 (GCVE-0-2022-49991)

Vulnerability from cvelistv5 – Published: 2025-06-18 11:00 – Updated: 2026-08-05 08:57
VLAI
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.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f619147104c8ea71e120e4936d2b68ec11a1e527 , < da60ddd80d09f8371fbba1a238a4b318d13ba698 (git)
Affected: f619147104c8ea71e120e4936d2b68ec11a1e527 , < 3ada1b3e58db255a14ec73a59d7913e84dc5a8a4 (git)
Affected: f619147104c8ea71e120e4936d2b68ec11a1e527 , < ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6 (git)
guessed Create a notification for this product.
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)
guessed Create a notification for this product.
Show details on NVD website

{
  "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-09-16",
      "epss": "0.00239",
      "percentile": "0.1514"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49991\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:26.753\",\"lastModified\":\"2026-08-04T10:18:02.283\",\"vulnStatus\":\"Modified\",\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"mm/hugetlb.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f619147104c8ea71e120e4936d2b68ec11a1e527\",\"lessThan\":\"da60ddd80d09f8371fbba1a238a4b318d13ba698\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f619147104c8ea71e120e4936d2b68ec11a1e527\",\"lessThan\":\"3ada1b3e58db255a14ec73a59d7913e84dc5a8a4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f619147104c8ea71e120e4936d2b68ec11a1e527\",\"lessThan\":\"ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"mm/hugetlb.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.65\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19.6\",\"lessThanOrEqual\":\"5.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.13\",\"versionEndExcluding\":\"5.15.65\",\"matchCriteriaId\":\"70590EA7-AAB6-4DA2-AEF6-5E5E596B89DA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.19.6\",\"matchCriteriaId\":\"89E99903-E16D-475D-954B-2BAC46C98262\"},{\"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\"}]}]}],\"references\":[{\"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\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-05T03:41:04+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": "152",
      "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-09-16T00:27:04Z",
      "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": "448",
      "product_status:recommended": "27",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49991",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49991.json",
      "version": "13"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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…

Detection rules are retrieved from Rulezet.

Loading…

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…