VDB

CVE-2025-38382

CVE-2025-38382 PUBLISHED CVSS 7.8 HIGH

btrfs: fix iteration of extrefs during log replay

Reported by linux · Published July 25, 2025

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix iteration of extrefs during log replay At __inode_add_ref() when processing extrefs, if we jump into the next label we have an undefined value of victim_name.len, since we haven't initialized it before we did the goto. This results in an invalid memory access in the next iteration of the loop since victim_name.len was not initialized to the length of the name of the current extref. Fix this by initializing victim_name.len with the current extref's name length.

Fixed versions

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

PackageEcosystemFixed in
bpftool6.12Amazon Linux1:6.12.37-61.105.amzn2023
bpftoolAmazon Linux1:6.1.144-170.251.amzn2023
LinuxLinux7ac790dc2ba00499a8d671d4a24de4d4ad27e234, 6.1.144, 54a7081ed168b72a8a2d6ef4ba3a1259705a2926

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, e43eec81c5167b655b72c781b0e75e62a05e415e, e43eec81c5167b655b72c781b0e75e62a05e415e
LinuxLinux6.2, 0, 6.1.144
amazon:2023bpftool6.120
amazon:2023bpftool0
LinuxLinux*, *, 6.1.144
amazon:2023kernel-tools-devel0
amazon:2023kernel6.12-devel0
amazon:2023kernel-headers0
amazon:2023kernel-tools0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf6.120
linuxlinux_kernel6.2, 6.2, 6.2
amazon:2023python3-perf0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023kernel-libbpf0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-libbpf0

…and 12 more

Timeline

  • Jul 25, 2025 CVE Published
  • Jul 26, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (10 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (207 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (223 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38382
vulnetix vdb fixes CVE-2025-38382

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-38382/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 ›