Saltar al contenido
DayZeroHub
Alta Sin redactarCVSS 7.8CVE-2026-99580

CVE-2026-99580: mm/userfaultfd: only allocate anon_vma in CoW mappings

Linux Linux

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-99580: vulnerabilidad de severidad alta (CVSS 7.8) en Linux Linux.

Qué ocurre

Descripción original de la fuente (en inglés): In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: only allocate anon_vma in CoW mappings find_vma_and_prepare_anon() can end up allocating an anon_vma in VMAs that are not CoW mappings, which is wrong. If we have a MAP_SHARED R/O file mapped, we lack VM_SHARED (but do have VM_MAYSHARE) and lack VM_MAYWRITE. While uffd later rejects such mappings (uffd registration requires VM_MAYWRITE, see comment in validate_dst_vma) find_vma_and_prepare_anon() still wrongly allocates an anon vma before it validates the vma. This in turn later confuses copy_page_range()->vma_needs_copy() such that we end up calling copy_hugetlb_page_range() with ranges that actually do not contain *any* per-pagetable information that would require copying, which is the basis for PMD-table sharing in the first place. copy_hugetlb_page_range() should not have to worry about shared PMD tables at all: it doesn't make any sense to copy page tables that are shared, as they can be fully recreated later. Ending up in the function with shareable page tables is the real issue. If a destination PMD table is shared in copy_hugetlb_page_range(), it might get concurrently unshared as we are not holding relevant locks, resulting in us using a page table that is no longer mapped and possibly freed after calling: dst_pte = huge_pte_alloc(dst, dst_vma, addr, sz); To fix it, do not allocate an anon_vma in non-CoW mappings and add a safety guard to copy_hugetlb_page_range(), making sure that we never end up messing with shared PMD tables in there. Before commit 867a43a34ff8a ("userfaultfd: use per-vma locks in userfaultfd operations") we would always validate the VMA before allocating an a…

Por qué importa

Severidad alta, CVSS 7.8.

Productos y versiones afectados

Linux Linux >= 867a43a34ff8a38772212045262b2c9b77807ea3, < a90e7044b34f801fbafcb682e8ee827a6db26002; Linux Linux >= 867a43a34ff8a38772212045262b2c9b77807ea3, < 3bf446c8ce64938f86439906d730a2cd5c0b31e2; Linux Linux >= 867a43a34ff8a38772212045262b2c9b77807ea3, < 20704188d669ed74a624fd67dfa4711bcb1087b6; Linux Linux >= 867a43a34ff8a38772212045262b2c9b77807ea3, < 514c9247db305922591d806ec65d3c3fe420538d; Linux Linux 6.9; Linux Linux < 6.9; Linux Linux 6.12.118 (corregido en 6.12.118); Linux Linux 6.18.64 (corregido en 6.18.64); Linux Linux 7.3.5 (corregido en 7.3.5); Linux Linux 7.4-rc1 (corregido en 7.4-rc1)

ProductoVersionesCorregido en
Linux Linux>= 867a43a34ff8a38772212045262b2c9b77807ea3, < a90e7044b34f801fbafcb682e8ee827a6db26002—
Linux Linux>= 867a43a34ff8a38772212045262b2c9b77807ea3, < 3bf446c8ce64938f86439906d730a2cd5c0b31e2—
Linux Linux>= 867a43a34ff8a38772212045262b2c9b77807ea3, < 20704188d669ed74a624fd67dfa4711bcb1087b6—
Linux Linux>= 867a43a34ff8a38772212045262b2c9b77807ea3, < 514c9247db305922591d806ec65d3c3fe420538d—
Linux Linux6.9—
Linux Linux< 6.9—
Linux Linux6.12.1186.12.118
Linux Linux6.18.646.18.64
Linux Linux7.3.57.3.5
Linux Linux7.4-rc17.4-rc1

Acción recomendada por la fuente

Actualizar a una versión corregida: 6.12.118, 6.18.64, 7.3.5, 7.4-rc1.

Corregido en: 6.12.118, 6.18.64, 7.3.5, 7.4-rc1

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

Historial de cambios relevantes

  1. Publicado

    Aviso preliminar publicado.