CVE-2025-39835

In the Linux kernel, the following vulnerability has been resolved: xfs: do not propagate ENODATA disk errors into xattr code ENODATA (aka ENOATTR) has a very specific meaning in the xfs xattr code; namely, that the requested attribute name could not be found. However, a medium error from disk may also return ENODATA. At best, this medium error may escape to userspace as "attribute not found" when in fact it's an IO (disk) error. At worst, we may oops in xfs_attr_leaf_get() when we do: error = xfs_attr_leaf_hasname(args, &bp); if (error == -ENOATTR) { xfs_trans_brelse(args->trans, bp); return error; } because an ENODATA/ENOATTR error from disk leaves us with a null bp, and the xfs_trans_brelse will then null-deref it. As discussed on the list, we really need to modify the lower level IO functions to trap all disk errors and ensure that we don't let unique errors like this leak up into higher xfs functions - many like this should be remapped to EIO. However, this patch directly addresses a reported bug in the xattr code, and should be safe to backport to stable kernels. A larger-scope patch to handle more unique errors at lower levels can follow later. (Note, prior to 07120f1abdff we did not oops, but we did return the wrong error code to userspace.)
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:*:*:*:*:*:*:*:*
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:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: xfs: no propagar errores de disco ENODATA al código xattr ENODATA (también conocido como ENOATTR) tiene un significado muy específico en el código xattr de xfs; a saber, que el nombre de atributo solicitado no pudo ser encontrado. Sin embargo, un error de medio del disco también puede devolver ENODATA. En el mejor de los casos, este error de medio puede escapar al espacio de usuario como 'atributo no encontrado' cuando de hecho es un error de E/S (disco). En el peor de los casos, podemos fallar en xfs_attr_leaf_get() cuando hacemos: error = xfs_attr_leaf_hasname(args, &bp); if (error == -ENOATTR) { xfs_trans_brelse(args->trans, bp); return error; } porque un error ENODATA/ENOATTR del disco nos deja con un 'bp' nulo, y xfs_trans_brelse entonces realizará una desreferenciación de puntero nulo. Como se discutió en la lista, realmente necesitamos modificar las funciones de E/S de nivel inferior para interceptar todos los errores de disco y asegurar que no permitimos que errores únicos como este se filtren a funciones xfs de nivel superior; muchos como este deberían ser reasignados a EIO. Sin embargo, este parche aborda directamente un error reportado en el código xattr, y debería ser seguro retroportarlo a kernels estables. Un parche de mayor alcance para manejar más errores únicos en niveles inferiores puede seguir más tarde. (Nota: antes de 07120f1abdff no fallábamos, pero sí devolvíamos el código de error incorrecto al espacio de usuario.)

Information

Published : 2025-09-16 14:15

Updated : 2026-11-05 22:17


NVD link : CVE-2025-39835

Mitre link : CVE-2025-39835

CVE.ORG link : CVE-2025-39835


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel