VDB

CVE-2025-39835

CVE-2025-39835 PUBLISHED

xfs: do not propagate ENODATA disk errors into xattr code

Reported by linux · Published September 16, 2025

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.)

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-headersAmazon Linux1:6.12.46-66.121.amzn2023
kernel-modules-extraAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.46-66.121.amzn2023
python3-perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.150-174.273.amzn2023
perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
kernel6.12Amazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.46-66.121.amzn2023
bpftoolAmazon Linux1:6.1.150-174.273.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.46-66.121.amzn2023
kernel-livepatch-6.12.46-66.121Amazon Linux1:1.0-0.amzn2023
kernel-toolsAmazon Linux1:6.1.150-174.273.amzn2023

14 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
LinuxLinux07120f1abdff80f3d1351f733661abe28d609535, 07120f1abdff80f3d1351f733661abe28d609535, 07120f1abdff80f3d1351f733661abe28d609535
LinuxLinux5.9, 0, 5.10.242
amazon:2023kernel6.12-headers0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-modules-extra-common0
amazon:2023perf6.120
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023bpftool0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023kernel-tools0
amazon:2023kernel-livepatch-6.1.150-174.2730
amazon:2023kernel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf0
amazon:2023kernel-devel0

…and 13 more

Timeline

  • Sep 15, 2025 CVE Published
  • Sep 17, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (16 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (130 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (141 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-39835
vulnetix vdb fixes CVE-2025-39835

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39835/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›