CVE-2026-99669
Linux kernel crash via truncate race in huge memory PMD zapping
An attacker can crash the system by racing MADV_DONTNEED against ftruncate() on XFS files.
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-99669 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
In the Linux kernel's memory management code, a race between truncating a file and zapping a huge page table entry can leave a folio marked dirty after it is no longer mapped, which can cause a kernel crash (oops) on XFS when MADV_DONTNEED races with ftruncate(). The affected software is Linux.
Descripción original del registro (Linux)
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix truncate racing with PMD zapping zap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty(). If this was the last mapping, truncation can skip unmapping the folio and proceed without waiting for the PMD lock, racing with dirtying. ifs_set_range_dirty() can oops if MADV_DONTNEED races with ftruncate() on XFS, when we get the folio set dirty after it was found to not be mapped anymore. Move folio_mark_dirty() and folio_mark_accessed() before rmap removal, matching the PTE zap path. This keeps the folio mapped while updating its state, so truncation must wait for the page table lock. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify comment and description ]
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Linux |
Corregida | 5.11, 5.16, 6.2, 6.7, 6.13, 6.19, 7.3 | — | — |
5.115.166.26.76.136.197.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://git.kernel.org/stable/c/a5786ec7ba7967433207f20214ff75768497a2c9https://git.kernel.org/stable/c/e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
