CVE-2025-38382
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool6.12 | Amazon Linux | 1:6.12.37-61.105.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| Linux | Linux | 7ac790dc2ba00499a8d671d4a24de4d4ad27e234, 6.1.144, 54a7081ed168b72a8a2d6ef4ba3a1259705a2926 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, e43eec81c5167b655b72c781b0e75e62a05e415e, e43eec81c5167b655b72c781b0e75e62a05e415e |
| Linux | Linux | 6.2, 0, 6.1.144 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | *, *, 6.1.144 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| linux | linux_kernel | 6.2, 6.2, 6.2 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
…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