CVE-2026-31448

In the Linux kernel, the following vulnerability has been resolved: ext4: avoid infinite loops caused by residual data On the mkdir/mknod path, when mapping logical blocks to physical blocks, if inserting a new extent into the extent tree fails (in this example, because the file system disabled the huge file feature when marking the inode as dirty), ext4_ext_map_blocks() only calls ext4_free_blocks() to reclaim the physical block without deleting the corresponding data in the extent tree. This causes subsequent mkdir operations to reference the previously reclaimed physical block number again, even though this physical block is already being used by the xattr block. Therefore, a situation arises where both the directory and xattr are using the same buffer head block in memory simultaneously. The above causes ext4_xattr_block_set() to enter an infinite loop about "inserted" and cannot release the inode lock, ultimately leading to the 143s blocking problem mentioned in [1]. If the metadata is corrupted, then trying to remove some extent space can do even more harm. Also in case EXT4_GET_BLOCKS_DELALLOC_RESERVE was passed, remove space wrongly update quota information. Jan Kara suggests distinguishing between two cases: 1) The error is ENOSPC or EDQUOT - in this case the filesystem is fully consistent and we must maintain its consistency including all the accounting. However these errors can happen only early before we've inserted the extent into the extent tree. So current code works correctly for this case. 2) Some other error - this means metadata is corrupted. We should strive to do as few modifications as possible to limit damage. So I'd just skip freeing of allocated blocks. [1] INFO: task syz.0.17:5995 blocked for more than 143 seconds. Call Trace: inode_lock_nested include/linux/fs.h:1073 [inline] __start_dirop fs/namei.c:2923 [inline] start_dirop fs/namei.c:2934 [inline]
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:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*

History

01 Dec 2026, 07:17

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/101ddb1c8f4b0a196e5cbbf51edf4bb328838868 -
  • () https://git.kernel.org/stable/c/fb3356d72151b554e2b4bc92b368d4c648cce5d9 -

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ext4: evitar bucles infinitos causados por datos residuales En la ruta mkdir/mknod, al mapear bloques lógicos a bloques físicos, si la inserción de un nuevo extent en el árbol de extents falla (en este ejemplo, porque el sistema de archivos deshabilitó la característica de archivos grandes al marcar el inodo como sucio), ext4_ext_map_blocks() solo llama a ext4_free_blocks() para reclamar el bloque físico sin eliminar los datos correspondientes en el árbol de extents. Esto hace que las operaciones mkdir posteriores referencien de nuevo el número de bloque físico previamente reclamado, aunque este bloque físico ya esté siendo utilizado por el bloque xattr. Por lo tanto, surge una situación en la que tanto el directorio como xattr están utilizando el mismo bloque de cabecera de búfer en memoria simultáneamente. Lo anterior hace que ext4_xattr_block_set() entre en un bucle infinito sobre ’inserted’ y no pueda liberar el bloqueo del inodo, lo que finalmente lleva al problema de bloqueo de 143s mencionado en [1]. Si los metadatos están corruptos, entonces intentar eliminar algo de espacio de extent puede causar aún más daño. También en caso de que se pasara EXT4_GET_BLOCKS_DELALLOC_RESERVE, la eliminación de espacio actualiza erróneamente la información de cuota. Jan Kara sugiere distinguir entre dos casos: 1) El error es ENOSPC o EDQUOT - en este caso el sistema de archivos es totalmente consistente y debemos mantener su consistencia incluyendo toda la contabilidad. Sin embargo, estos errores solo pueden ocurrir temprano antes de haber insertado el extent en el árbol de extents. Por lo tanto, el código actual funciona correctamente para este caso. 2) Algún otro error - esto significa que los metadatos están corruptos. Debemos esforzarnos por hacer la menor cantidad de modificaciones posible para limitar el daño. Así que simplemente omitiría la liberación de bloques asignados. [1] INFO: la tarea syz.0.17:5995 bloqueada durante más de 143 segundos. Traza de Llamada: inode_lock_nested include/linux/fs.h:1073 [inline] __start_dirop fs/namei.c:2923 [inline] start_dirop fs/namei.c:2934 [inline]

15 Oct 2026, 02:19

Type Values Removed Values Added
References
  • () https://cert-portal.siemens.com/productcert/html/ssa-457936.html -

14 Jul 2026, 13:18

Type Values Removed Values Added
References
  • () https://cert-portal.siemens.com/productcert/html/ssa-019113.html -
  • () https://cert-portal.siemens.com/productcert/html/ssa-082556.html -

07 May 2026, 18:43

Type Values Removed Values Added
CWE CWE-835
CPE cpe:2.3:o:linux:linux_kernel:2.6.22:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.22:rc6:*:*:*:*:*:*
First Time Linux linux Kernel
Linux
References () https://git.kernel.org/stable/c/3a7667595bcad84da53fc156a418e110267c3412 - () https://git.kernel.org/stable/c/3a7667595bcad84da53fc156a418e110267c3412 - Patch
References () https://git.kernel.org/stable/c/416c86f30f91b4fb2642ef6b102596ca898f41a5 - () https://git.kernel.org/stable/c/416c86f30f91b4fb2642ef6b102596ca898f41a5 - Patch
References () https://git.kernel.org/stable/c/5422fe71d26d42af6c454ca9527faaad4e677d6c - () https://git.kernel.org/stable/c/5422fe71d26d42af6c454ca9527faaad4e677d6c - Patch
References () https://git.kernel.org/stable/c/64f425b06b3bea9abc8977fd3982779b3ad070c9 - () https://git.kernel.org/stable/c/64f425b06b3bea9abc8977fd3982779b3ad070c9 - Patch
References () https://git.kernel.org/stable/c/c66545e83a802c3851d9be27a41c0479dd29ff0c - () https://git.kernel.org/stable/c/c66545e83a802c3851d9be27a41c0479dd29ff0c - Patch
References () https://git.kernel.org/stable/c/ecc50bfca9b5c2ee6aeef998181689b80477367b - () https://git.kernel.org/stable/c/ecc50bfca9b5c2ee6aeef998181689b80477367b - Patch

27 Apr 2026, 14:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.4

22 Apr 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-22 14:16

Updated : 2026-12-01 07:17


NVD link : CVE-2026-31448

Mitre link : CVE-2026-31448

CVE.ORG link : CVE-2026-31448


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-835

Loop with Unreachable Exit Condition ('Infinite Loop')