{"id":"CVE-2026-99580","aliases":[],"cve":{"records":[{"id":"CVE-2026-99580","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.423Z","published":"2026-11-20T05:49:12.114Z","modified":"2026-11-22T11:09:02.427Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-22T11:09:02.427Z"}],"references":[{"url":"https://git.kernel.org/stable/c/a90e7044b34f801fbafcb682e8ee827a6db26002","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/3bf446c8ce64938f86439906d730a2cd5c0b31e2","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/20704188d669ed74a624fd67dfa4711bcb1087b6","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/514c9247db305922591d806ec65d3c3fe420538d","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"mm/userfaultfd: only allocate anon_vma in CoW mappings","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/userfaultfd: only allocate anon_vma in CoW mappings\n\nfind_vma_and_prepare_anon() can end up allocating an anon_vma in VMAs that\nare not CoW mappings, which is wrong.\n\nIf we have a MAP_SHARED R/O file mapped, we lack VM_SHARED (but do have\nVM_MAYSHARE) and lack VM_MAYWRITE.\n\nWhile uffd later rejects such mappings (uffd registration requires\nVM_MAYWRITE, see comment in validate_dst_vma) find_vma_and_prepare_anon()\nstill wrongly allocates an anon vma before it validates the vma.\n\nThis in turn later confuses copy_page_range()->vma_needs_copy() such\nthat we end up calling copy_hugetlb_page_range() with ranges that\nactually do not contain *any* per-pagetable information that would\nrequire copying, which is the basis for PMD-table sharing in the first\nplace.\n\ncopy_hugetlb_page_range() should not have to worry about shared\nPMD tables at all: it doesn't make any sense to copy page tables that are\nshared, as they can be fully recreated later. Ending up in the function\nwith shareable page tables is the real issue.\n\nIf a destination PMD table is shared in copy_hugetlb_page_range(), it\nmight get concurrently unshared as we are not holding relevant\nlocks, resulting in us using a page table that is no longer mapped and\npossibly freed after calling:\n\n\tdst_pte = huge_pte_alloc(dst, dst_vma, addr, sz);\n\nTo fix it, do not allocate an anon_vma in non-CoW mappings and add a\nsafety guard to copy_hugetlb_page_range(), making sure that we never\nend up messing with shared PMD tables in there.\n\nBefore commit 867a43a34ff8a (\"userfaultfd: use per-vma locks in userfaultfd\noperations\") we would always validate the VMA before allocating an\nanon_vma, and consequently never wrongly allocate an anon_vma.\n\nAs uffd_lock_vma() is part of the same lookup machinery and\nalso contains a misleading VM_SHARED check, change that one as well\ndirectly for consistency.\n\nA follow-up cleanup will stop taking the hugetlb_vma_lock_read(src_vma)\nlock in copy_hugetlb_page_range() entirely. Further, the usage of\nVM_SHARED in userfaultfd code should be cleaned up later to focus on\nCoW vs. non-CoW mappings.","score":7.8,"severity":"high","published":"2026-11-20T05:49:12.114Z","modified":"2026-11-22T11:09:02.427Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"867a43a34ff8a38772212045262b2c9b77807ea3","status":"affected","lessThan":"a90e7044b34f801fbafcb682e8ee827a6db26002","versionType":"git"},{"version":"867a43a34ff8a38772212045262b2c9b77807ea3","status":"affected","lessThan":"3bf446c8ce64938f86439906d730a2cd5c0b31e2","versionType":"git"},{"version":"867a43a34ff8a38772212045262b2c9b77807ea3","status":"affected","lessThan":"20704188d669ed74a624fd67dfa4711bcb1087b6","versionType":"git"},{"version":"867a43a34ff8a38772212045262b2c9b77807ea3","status":"affected","lessThan":"514c9247db305922591d806ec65d3c3fe420538d","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99580"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.118","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.64","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.5","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99580"}],"remediation":[],"references":["https://git.kernel.org/stable/c/a90e7044b34f801fbafcb682e8ee827a6db26002","https://git.kernel.org/stable/c/3bf446c8ce64938f86439906d730a2cd5c0b31e2","https://git.kernel.org/stable/c/20704188d669ed74a624fd67dfa4711bcb1087b6","https://git.kernel.org/stable/c/514c9247db305922591d806ec65d3c3fe420538d"],"sources":[{"name":"CVE","id":"CVE-2026-99580","modified":"2026-11-22T11:09:02.427Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99580"}],"assessments":[{"source":"Linux","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8}],"sourceAffected":[],"observedAt":"2026-11-22T11:22:23.058Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T13:00:31.692Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-21T14:10:34.605Z","attemptedAt":"2026-11-21T14:10:34.605Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-21T13:55:33.801Z","attemptedAt":"2026-11-21T13:55:33.801Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-21T13:35:36.642Z","attemptedAt":"2026-11-21T13:35:36.642Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-21T13:20:33.521Z","attemptedAt":"2026-11-21T13:20:33.521Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99580","url":"https://www.first.org/epss/","probability":0.00168,"percentile":0.06307,"date":"2026-11-20","checkedAt":"2026-11-21T13:20:33.521Z"},{"source":"ENISA EUVD","id":"EUVD-2026-131030","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-131030","modified":"Nov 20, 2026, 5:49:12 AM","checkedAt":"2026-11-21T13:35:36.642Z"},{"source":"GitHub Advisory Database","id":"GHSA-g42q-c6pj-qg24","url":"https://github.com/advisories/GHSA-g42q-c6pj-qg24","modified":"2026-11-20T06:32:10Z","checkedAt":"2026-11-21T13:55:33.801Z"},{"source":"NVD","id":"CVE-2026-99580","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99580","modified":"2026-11-20T06:17:49.237","checkedAt":"2026-11-21T14:10:34.605Z"}],"aiSummary":null}