CVE-2025-39899

In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: fix kmap_local LIFO ordering for CONFIG_HIGHPTE With CONFIG_HIGHPTE on 32-bit ARM, move_pages_pte() maps PTE pages using kmap_local_page(), which requires unmapping in Last-In-First-Out order. The current code maps dst_pte first, then src_pte, but unmaps them in the same order (dst_pte, src_pte), violating the LIFO requirement. This causes the warning in kunmap_local_indexed(): WARNING: CPU: 0 PID: 604 at mm/highmem.c:622 kunmap_local_indexed+0x178/0x17c addr \!= __fix_to_virt(FIX_KMAP_BEGIN + idx) Fix this by reversing the unmap order to respect LIFO ordering. This issue follows the same pattern as similar fixes: - commit eca6828403b8 ("crypto: skcipher - fix mismatch between mapping and unmapping order") - commit 8cf57c6df818 ("nilfs2: eliminate staggered calls to kunmap in nilfs_rename") Both of which addressed the same fundamental requirement that kmap_local operations must follow LIFO ordering.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/userfaultfd: corregir el orden LIFO de kmap_local para CONFIG_HIGHPTE Con CONFIG_HIGHPTE en ARM de 32 bits, move_pages_pte() mapea páginas PTE usando kmap_local_page(), lo que requiere desmapear en orden Último en Entrar, Primero en Salir. El código actual mapea dst_pte primero, luego src_pte, pero los desmapea en el mismo orden (dst_pte, src_pte), violando el requisito LIFO. Esto causa la advertencia en kunmap_local_indexed(): WARNING: CPU: 0 PID: 604 at mm/highmem.c:622 kunmap_local_indexed+0x178/0x17c addr \!= __fix_to_virt(FIX_KMAP_BEGIN + idx) Corregir esto invirtiendo el orden de desmapeo para respetar el orden LIFO. Este problema sigue el mismo patrón que correcciones similares: - commit eca6828403b8 ('crypto: skcipher - corregir la falta de coincidencia entre el orden de mapeo y desmapeo') - commit 8cf57c6df818 ('nilfs2: eliminar llamadas escalonadas a kunmap en nilfs_rename') Ambos abordaron el mismo requisito fundamental de que las operaciones de kmap_local deben seguir el orden LIFO.

Information

Published : 2025-10-01 08:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-39899

Mitre link : CVE-2025-39899

CVE.ORG link : CVE-2025-39899


JSON object : View

Products Affected

linux

  • linux_kernel