CVE-2025-39835
xfs: do not propagate ENODATA disk errors into xattr code
Check your servers for CVE-2025-39835
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39835 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.86% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 07120f1abdff80f3d1351f733661abe28d609535, before 157ddfb05961c68ab7d457a462822a698e4e4bf4 affected from 07120f1abdff80f3d1351f733661abe28d609535, before 90bae69c2959c39912f0c2f07a9a7894f3fc49f5 affected from 07120f1abdff80f3d1351f733661abe28d609535, before e358d4b6225e4c1eb208686a05e360ef8df59e07 affected from 07120f1abdff80f3d1351f733661abe28d609535, before d3cc7476b89fb45b7e00874f4f56f6b928467c60 affected from 07120f1abdff80f3d1351f733661abe28d609535, before dcdf36f1b67884c722abce9b8946e34ffb9f67c8 affected from 07120f1abdff80f3d1351f733661abe28d609535, before 39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8 affected from 07120f1abdff80f3d1351f733661abe28d609535, before ae668cd567a6a7622bc813ee0bb61c42bed61ba7
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 5.10.242 up to and including 5.10.* unaffected from 5.15.191 up to and including 5.15.* unaffected from 6.1.150 up to and including 6.1.* unaffected from 6.6.104 up to and including 6.6.* unaffected from 6.12.45 up to and including 6.12.* unaffected from 6.16.5 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39835 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39835
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-39835
trivy image --scanners vuln IMAGE | grep CVE-2025-39835
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/157ddfb05961c68ab7d457a462822a698e4e4bf4 git.kernel.org
- https://git.kernel.org/stable/c/90bae69c2959c39912f0c2f07a9a7894f3fc49f5 git.kernel.org
- https://git.kernel.org/stable/c/e358d4b6225e4c1eb208686a05e360ef8df59e07 git.kernel.org
- https://git.kernel.org/stable/c/d3cc7476b89fb45b7e00874f4f56f6b928467c60 git.kernel.org
- https://git.kernel.org/stable/c/dcdf36f1b67884c722abce9b8946e34ffb9f67c8 git.kernel.org
- https://git.kernel.org/stable/c/39fc2742ca14f7fbc621ce9b43bcbd00248cb9a8 git.kernel.org
- https://git.kernel.org/stable/c/ae668cd567a6a7622bc813ee0bb61c42bed61ba7 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
Source: the record CVE-2025-39835 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse