CVE-2026-43053

In the Linux kernel, the following vulnerability has been resolved: xfs: close crash window in attr dabtree inactivation When inactivating an inode with node-format extended attributes, xfs_attr3_node_inactive() invalidates all child leaf/node blocks via xfs_trans_binval(), but intentionally does not remove the corresponding entries from their parent node blocks. The implicit assumption is that xfs_attr_inactive() will truncate the entire attr fork to zero extents afterwards, so log recovery will never reach the root node and follow those stale pointers. However, if a log shutdown occurs after the leaf/node block cancellations commit but before the attr bmap truncation commits, this assumption breaks. Recovery replays the attr bmap intact (the inode still has attr fork extents), but suppresses replay of all cancelled leaf/node blocks, maybe leaving them as stale data on disk. On the next mount, xlog_recover_process_iunlinks() retries inactivation and attempts to read the root node via the attr bmap. If the root node was not replayed, reading the unreplayed root block triggers a metadata verification failure immediately; if it was replayed, following its child pointers to unreplayed child blocks triggers the same failure: XFS (pmem0): Metadata corruption detected at xfs_da3_node_read_verify+0x53/0x220, xfs_da3_node block 0x78 XFS (pmem0): Unmount and run xfs_repair XFS (pmem0): First 128 bytes of corrupted metadata buffer: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (pmem0): metadata I/O error in "xfs_da_read_buf+0x104/0x190" at daddr 0x78 len 8 error 117 Fix this in two places: In xfs_attr3_node_inactive(), after calling xfs_trans_binval() on a child block, immediately remove the entry that references it from the parent node in the same transaction. This eliminates the window where the parent holds a pointer to a cancelled block. Once all children are removed, the now-empty root node is converted to a leaf block within the same transaction. This node-to-leaf conversion is necessary for crash safety. If the system shutdown after the empty node is written to the log but before the second-phase bmap truncation commits, log recovery will attempt to verify the root block on disk. xfs_da3_node_verify() does not permit a node block with count == 0; such a block will fail verification and trigger a metadata corruption shutdown. on the other hand, leaf blocks are allowed to have this transient state. In xfs_attr_inactive(), split the attr fork truncation into two explicit phases. First, truncate all extents beyond the root block (the child extents whose parent references have already been removed above). Second, invalidate the root block and truncate the attr bmap to zero in a single transaction. The two operations in the second phase must be atomic: as long as the attr bmap has any non-zero length, recovery can follow it to the root block, so the root block invalidation must commit together with the bmap-to-zero truncation.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*
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:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: xfs: cerrar ventana de fallo en la inactivación de dabtree de attr Al inactivar un inodo con atributos extendidos en formato de nodo, xfs_attr3_node_inactive() invalida todos los bloques hoja/nodo hijos a través de xfs_trans_binval(), pero intencionalmente no elimina las entradas correspondientes de sus bloques de nodo padre. La suposición implícita es que xfs_attr_inactive() truncará toda la bifurcación de attr a cero extensiones después, por lo que la recuperación del registro nunca alcanzará el nodo raíz y seguirá esos punteros obsoletos. Sin embargo, si se produce un apagado del registro después de que las cancelaciones de bloques hoja/nodo se confirmen, pero antes de que el truncamiento del bmap de attr se confirme, esta suposición se rompe. La recuperación reproduce el bmap de attr intacto (el inodo aún tiene extensiones de bifurcación de attr), pero suprime la reproducción de todos los bloques hoja/nodo cancelados, quizás dejándolos como datos obsoletos en el disco. En el siguiente montaje, xlog_recover_process_iunlinks() reintenta la inactivación e intenta leer el nodo raíz a través del bmap de attr. Si el nodo raíz no fue reproducido, la lectura del bloque raíz no reproducido desencadena un fallo de verificación de metadatos inmediatamente; si fue reproducido, seguir sus punteros hijos a bloques hijos no reproducidos desencadena el mismo fallo: XFS (pmem0): Metadata corruption detected at xfs_da3_node_read_verify+0x53/0x220, xfs_da3_node block 0x78 XFS (pmem0): Unmount and run xfs_repair XFS (pmem0): First 128 bytes of corrupted metadata buffer: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ XFS (pmem0): metadata I/O error in “xfs_da_read_buf+0x104/0x190” at daddr 0x78 len 8 error 117 Corregir esto en dos lugares: En xfs_attr3_node_inactive(), después de llamar a xfs_trans_binval() en un bloque hijo, eliminar inmediatamente la entrada que lo referencia del nodo padre en la misma transacción. Esto elimina la ventana donde el padre mantiene un puntero a un bloque cancelado. Una vez que todos los hijos son eliminados, el nodo raíz ahora vacío se convierte en un bloque hoja dentro de la misma transacción. Esta conversión de nodo a hoja es necesaria para la seguridad ante fallos. Si el sistema se apaga después de que el nodo vacío se escribe en el registro pero antes de que el truncamiento del bmap de segunda fase se confirme, la recuperación del registro intentará verificar el bloque raíz en el disco. xfs_da3_node_verify() no permite un bloque de nodo con count == 0; dicho bloque fallará la verificación y desencadenará un apagado por corrupción de metadatos. Por otro lado, a los bloques hoja se les permite tener este estado transitorio. En xfs_attr_inactive(), dividir el truncamiento de la bifurcación de attr en dos fases explícitas. Primero, truncar todas las extensiones más allá del bloque raíz (las extensiones hijas cuyas referencias padre ya han sido eliminadas anteriormente). Segundo, invalidar el bloque raíz y truncar el bmap de attr a cero en una sola transacción. Las dos operaciones en la segunda fase deben ser atómicas: mientras el bmap de attr tenga cualquier longitud distinta de cero, la recuperación puede seguirlo hasta el bloque raíz, por lo que la invalidación del bloque raíz debe confirmarse junto con el truncamiento del bmap a cero.

21 Oct 2026, 13:18

Type Values Removed Values Added
References
  • () https://git.kernel.org/stable/c/190d54d1d42878fce8c735c2d9ac835725694d3a -
  • () https://git.kernel.org/stable/c/7ea3850b9ce005e70f502b308edb2d99ca074ed3 -

07 May 2026, 18:24

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0: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:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.7
CWE CWE-367
References () https://git.kernel.org/stable/c/b854e1c4eff3473b6d3a9ae74129ac5c48bc0b61 - () https://git.kernel.org/stable/c/b854e1c4eff3473b6d3a9ae74129ac5c48bc0b61 - Patch
References () https://git.kernel.org/stable/c/e5a3e3cdd9b3015ae79456c81beebfdbb5246c0f - () https://git.kernel.org/stable/c/e5a3e3cdd9b3015ae79456c81beebfdbb5246c0f - Patch

01 May 2026, 15:24

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-01 15:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-43053

Mitre link : CVE-2026-43053

CVE.ORG link : CVE-2026-43053


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-367

Time-of-check Time-of-use (TOCTOU) Race Condition