{"id":"CVE-2025-39835","aliases":["CVE-2025-39835"],"related":[],"kind":"vulnerability","state":"published","title":"xfs: do not propagate ENODATA disk errors into xattr code","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: do not propagate ENODATA disk errors into xattr code\n\nENODATA (aka ENOATTR) has a very specific meaning in the xfs xattr code;\nnamely, that the requested attribute name could not be found.\n\nHowever, a medium error from disk may also return ENODATA. At best,\nthis medium error may escape to userspace as \"attribute not found\"\nwhen in fact it's an IO (disk) error.\n\nAt worst, we may oops in xfs_attr_leaf_get() when we do:\n\n\terror = xfs_attr_leaf_hasname(args, &bp);\n\tif (error == -ENOATTR)  {\n\t\txfs_trans_brelse(args->trans, bp);\n\t\treturn error;\n\t}\n\nbecause an ENODATA/ENOATTR error from disk leaves us with a null bp,\nand the xfs_trans_brelse will then null-deref it.\n\nAs discussed on the list, we really need to modify the lower level\nIO functions to trap all disk errors and ensure that we don't let\nunique errors like this leak up into higher xfs functions - many\nlike this should be remapped to EIO.\n\nHowever, this patch directly addresses a reported bug in the xattr\ncode, and should be safe to backport to stable kernels. A larger-scope\npatch to handle more unique errors at lower levels can follow later.\n\n(Note, prior to 07120f1abdff we did not oops, but we did return the\nwrong error code to userspace.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: do not propagate ENODATA disk errors into xattr code\n\nENODATA (aka ENOATTR) has a very specific meaning in the xfs xattr code;\nnamely, that the requested attribute name could not be found.\n\nHowever, a medium error from disk may also return ENODATA. At best,\nthis medium error may escape to userspace as \"attribute not found\"\nwhen in fact it's an IO (disk) error.\n\nAt worst, we may oops in xfs_attr_leaf_get() when we do:\n\n\terror = xfs_attr_leaf_hasname(args, &bp);\n\tif (error == -ENOATTR)  {\n\t\txfs_trans_brelse(args->trans, bp);\n\t\treturn error;\n\t}\n\nbecause an ENODATA/ENOATTR error from disk leaves us with a null bp,\nand the xfs_trans_brelse will then null-deref it.\n\nAs discussed on the list, we really need to modify the lower level\nIO functions to trap all disk errors and ensure that we don't let\nunique errors like this leak up into higher xfs functions - many\nlike this should be remapped to EIO.\n\nHowever, this patch directly addresses a reported bug in the xattr\ncode, and should be safe to backport to stable kernels. A larger-scope\npatch to handle more unique errors at lower levels can follow later.\n\n(Note, prior to 07120f1abdff we did not oops, but we did return the\nwrong error code to userspace.)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nxfs: no propagar errores de disco ENODATA al código xattr\n\nENODATA (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.\n\nSin 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).\n\nEn el peor de los casos, podemos fallar en xfs_attr_leaf_get() cuando hacemos:\n\n\terror = xfs_attr_leaf_hasname(args, &bp);\n\tif (error == -ENOATTR)  {\n\t\txfs_trans_brelse(args->trans, bp);\n\t\treturn error;\n\t}\n\nporque un error ENODATA/ENOATTR del disco nos deja con un 'bp' nulo, y xfs_trans_brelse entonces realizará una desreferenciación de puntero nulo.\n\nComo 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.\n\nSin 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.\n\n(Nota: antes de 07120f1abdff no fallábamos, pero sí devolvíamos el código de error incorrecto al espacio de usuario.)","source":"nvd"}],"published":"2025-09-16T13:08:51.599Z","modified":"2026-11-05T22:17:33.380Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"157ddfb05961c68ab7d457a462822a698e4e4bf4","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"90bae69c2959c39912f0c2f07a9a7894f3fc49f5","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"e358d4b6225e4c1eb208686a05e360ef8df59e07","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"d3cc7476b89fb45b7e00874f4f56f6b928467c60","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"dcdf36f1b67884c722abce9b8946e34ffb9f67c8","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8","status":"affected"},{"type":"git","introduced":"07120f1abdff80f3d1351f733661abe28d609535","fixed":"ae668cd567a6a7622bc813ee0bb61c42bed61ba7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.242","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.191","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.150","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.104","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.45","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.5","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.9","fixed":"5.10.242"},{"status":"affected","introduced":"5.11","fixed":"5.15.191"},{"status":"affected","introduced":"5.16","fixed":"6.1.150"},{"status":"affected","introduced":"6.2","fixed":"6.6.104"},{"status":"affected","introduced":"6.7","fixed":"6.12.45"},{"status":"affected","introduced":"6.13","fixed":"6.16.5"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/157ddfb05961c68ab7d457a462822a698e4e4bf4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90bae69c2959c39912f0c2f07a9a7894f3fc49f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e358d4b6225e4c1eb208686a05e360ef8df59e07","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3cc7476b89fb45b7e00874f4f56f6b928467c60","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dcdf36f1b67884c722abce9b8946e34ffb9f67c8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae668cd567a6a7622bc813ee0bb61c42bed61ba7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:12:24.668Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39835","url":"https://www.cve.org/CVERecord?id=CVE-2025-39835","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:59.753Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39835","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39835","licence":"Public domain","modified":"2026-11-05T22:17:33.380Z"}],"updatedAt":"2026-11-25T22:59:04.740Z","epss":{"score":0.00273,"percentile":0.12424,"date":"2026-11-30T12:00:22.000Z"}}