CVE-2026-97415
btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF
Reported by linux · Published September 24, 2026
In the Linux kernel, the following vulnerability has been resolved: btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF ROOT_REF and ROOT_BACKREF items contain a struct btrfs_root_ref followed by the subvolume name. Several readers assume that this layout is already valid and then use the on-disk name length directly. A corrupted item can therefore make those readers address bytes outside the item, and BTRFS_IOC_GET_SUBVOL_INFO can copy too many bytes into its fixed-size UAPI name buffer. Validate ROOT_REF and ROOT_BACKREF items in tree-checker before any reader uses them. Reject records that do not contain a non-empty name, whose name_len does not exactly describe the remaining item payload, or whose name exceeds BTRFS_NAME_LEN. For BTRFS_IOC_GET_SUBVOL_INFO, copy only the validated on-disk name_len instead of deriving the copy length from the item size. The ioctl result is zeroed when allocated. That leaves the existing trailing zero byte untouched.
EPSS 0.13% · 2.8th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.12 | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.189-236.399.amzn2023 |
| kernel-livepatch-6.1.189-236.399 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b64ec075bded2b30bcd90af5aa5256d2237c885d, b64ec075bded2b30bcd90af5aa5256d2237c885d, b64ec075bded2b30bcd90af5aa5256d2237c885d |
| Linux | Linux | 4.18, 0, 6.1.189 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-livepatch-6.1.189-236.399 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| linux | linux_kernel | 4.18, 4.18, 4.18 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | microvm-kernel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.18 | 0 |
…and 19 more
Timeline
- Sep 24, 2026 CVE Published
- Sep 25, 2026 EPSS Score (5 in total, the first dated here)
- Oct 3, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-97415
vulnetix vdb fixes CVE-2026-97415
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-2026-97415/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart