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

CVE-2026-99463: mm/rmap: don't discard lazyfree THPs at PMD level

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-99463: 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/rmap: don't discard lazyfree THPs at PMD level __discard_anon_folio_pmd_locked() clears a lazyfree THP's PMD before it determines whether the folio can be discarded, and restores it if the folio is dirty or has extra references. It is done under only the PMD lock and the anon_vma read lock inside try_to_unmap_one() and no mmap lock is held. The temporarily none PMD causes UAF. A parallel munmap() or mremap() is supposed to serialize with it on the PMD lock, but zap_pmd_range() (called by munmap()) and move_page_tables() (called by mremap()) do not take the lock when they see the temporarily none PMD and skip the PMD. There is no more page table walk after the none PMD is restored: - munmap(): free_pgtables() waits in unlink_anon_vmas() for the anon_vma lock, then free_pmd_range() drops the restored PMD as bad without removing the rmap, so the folio keeps a stale mapcount. - whole-VMA MREMAP_DONTUNMAP: dontunmap_complete() unlinks the source VMA from its anon_vma while the restored PMD still maps the folio. - plain mremap(): the THP is not moved but unmapped, so the THP's data is lost. In the first two cases, the folio stays mapped, but no VMA that maps it is linked to its anon_vma. When the anon_vma is freed, it is still reachable when one rmap walks the folio. Racing lazyfree reclaim against MREMAP_DONTUNMAP as an unprivileged user reproduces a KASAN use-after-free in folio_lock_anon_vma_read() as reported in the Closes link. One solution is to use an invalidated PMD instead of a cleared one until the discard is committed, but it needs arch fixes first. 1. GUP-fast still follows an invalidated PMD on…

Por qué importa

Severidad alta, CVSS 7.8.

Productos y versiones afectados

Linux Linux >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3; Linux Linux >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 3594027c292b09d9301b4be80fa8e0c815ffaf2a; Linux Linux >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < b8c683bd548268453d50e933aab2e7d50a7ac2be; Linux Linux >= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 984c0700854e35779a2bcce6b02783e709b6efa2; Linux Linux 6.11; Linux Linux < 6.11; Linux Linux 6.12.117 (corregido en 6.12.117); Linux Linux 6.18.61 (corregido en 6.18.61); Linux Linux 7.3.2 (corregido en 7.3.2); Linux Linux 7.4-rc1 (corregido en 7.4-rc1)

ProductoVersionesCorregido en
Linux Linux>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 8cf9517996067cfbfc5abdb4cfb3d7e15a7b34a3—
Linux Linux>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 3594027c292b09d9301b4be80fa8e0c815ffaf2a—
Linux Linux>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < b8c683bd548268453d50e933aab2e7d50a7ac2be—
Linux Linux>= 735ecdfaf4e802209caf34b7ac45adf448c54ccc, < 984c0700854e35779a2bcce6b02783e709b6efa2—
Linux Linux6.11—
Linux Linux< 6.11—
Linux Linux6.12.1176.12.117
Linux Linux6.18.616.18.61
Linux Linux7.3.27.3.2
Linux Linux7.4-rc17.4-rc1

Acción recomendada por la fuente

Actualizar a una versión corregida: 6.12.117, 6.18.61, 7.3.2, 7.4-rc1.

Corregido en: 6.12.117, 6.18.61, 7.3.2, 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.