CVE-2026-97415
published high CVSS 3.1 · 7.8btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb64ec075bded2b30bcd90af5aa5256d2237c885d to < 1370badf6b823ce3cde39a65f46f9e5dc7b4bf43 · b64ec075bded2b30bcd90af5aa5256d2237c885d to < ba6c4fc662853f6662e4db060cf88ee994053e21 · b64ec075bded2b30bcd90af5aa5256d2237c885d to < 9154542070ca7eadb3c764a882f39a127677854b · b64ec075bded2b30bcd90af5aa5256d2237c885d to < 74f577c722c99248d804eca18e7de7c5e47549d7 · b64ec075bded2b30bcd90af5aa5256d2237c885d to < 0af37c217edf15fa21dac1c40822086df356c6bb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.18 (affected) · 0 to < 4.18 (unaffected · semver) · 6.1.189 through 6.1.* (unaffected · semver) · 6.6.158 through 6.6.* (unaffected · semver) · 6.12.111 through 6.12.* (unaffected · semver) · 6.18.53 through 6.18.* (unaffected · semver) · 7.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3192 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3193 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3336 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| Debian | bookworm | linux | Advisory build | 6.1.190-1 | DLA-4841-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-264.19.1.el10_3 | ALSA-2026:102168 |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.111-1~deb12u1 | DLA-4817-1 |
| Debian | trixie | linux | Advisory build | 6.12.111-1 | DSA-6528-1 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-264.19.1.el10_3 | ELSA-2026-102168 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The attacker-controlled bytes are the on-disk BTRFS_ROOT_BACKREF_KEY item (struct btrfs_root_ref plus the following name) in the tree of tree roots. After that image is mounted, ioctl(BTRFS_IOC_GET_SUBVOL_INFO) reaches _btrfs_ioctl_get_subvol_info() via btrfs_ioctl() and read_extent_buffer()s the item; no SMB/NFS/packet field carries that payload. AC:L - check_leaf_item() had no BTRFS_ROOT_REF_KEY/BTRFS_ROOT_BACKREF_KEY case, so btrfs_check_leaf() accepted a ROOT_BACKREF whose item_size filled the leaf (~BTRFS_LEAF_DATA_SIZE). _btrfs_ioctl_get_subvol_info() then copied item_size-sizeof(struct btrfs_root_ref) into name[256] on every ioctl; the attacker fully controls that image. PR:L - btrfs_ioctl() dispatches BTRFS_IOC_GET_SUBVOL_INFO and BTRFS_IOC_INO_LOOKUP_USER with no capable() check. btrfs_fs_type has no FS_USERNS_MOUNT, so the severe case is an unprivileged session user whose USB/loop btrfs image is mounted by udisks2/polkit, then opens any fd in that subvolume and issues the ioctl. UI:N - The attacker crafts the ROOT_BACKREF, has that local image mounted, and themselves calls BTRFS_IOC_GET_SUBVOL_INFO (or BTRFS_IOC_INO_LOOKUP_USER, which copies the same item via btrfs_search_path_in_tree_user()) on their own fd. Automount of that local/removable image is not a separate victim action once AV is Local. S:U - The overflow is in the host kernel's kzalloc'd btrfs_ioctl_get_subvol_info_args (and ino_lookup_user args) while parsing tree_root ROOT_BACKREF/ROOT_REF items. No KVM/Xen guest-to-host, IOMMU, or sandbox boundary is crossed. C:H - _btrfs_ioctl_get_subvol_info() and btrfs_search_path_in_tree_user() call read_extent_buffer() with a length taken from the on-disk item_size into name[BTRFS_VOL_NAME_MAX+1] (256 bytes). That out-of-bounds write of attacker-chosen leaf bytes into adjacent slab is a kernel-memory disclosure primitive. I:H - The same unbounded read_extent_buffer() into the 256-byte name[] of the kzalloc'd ioctl args overwrites neighboring heap objects with attacker-controlled ROOT_BACKREF payload, which is sufficient for an arbitrary kernel write and control-flow hijacking. A:H - Copying a leaf-sized ROOT_BACKREF past btrfs_ioctl_get_subvol_info_args.name[256], or writing args->name[item_len]='\0' in btrfs_search_path_in_tree_user() with that huge item_len, oopses or panics the kernel on the slab out-of-bounds access.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b64ec075bded2b30bcd90af5aa5256d2237c885d to < 1370badf6b823ce3cde39a65f46f9e5dc7b4bf43 (affected · git)b64ec075bded2b30bcd90af5aa5256d2237c885d to < ba6c4fc662853f6662e4db060cf88ee994053e21 (affected · git)b64ec075bded2b30bcd90af5aa5256d2237c885d to < 9154542070ca7eadb3c764a882f39a127677854b (affected · git)b64ec075bded2b30bcd90af5aa5256d2237c885d to < 74f577c722c99248d804eca18e7de7c5e47549d7 (affected · git)b64ec075bded2b30bcd90af5aa5256d2237c885d to < 0af37c217edf15fa21dac1c40822086df356c6bb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.18 (affected)0 to < 4.18 (unaffected · semver)6.1.189 through 6.1.* (unaffected · semver)6.6.158 through 6.6.* (unaffected · semver)6.12.111 through 6.12.* (unaffected · semver)6.18.53 through 6.18.* (unaffected · semver)7.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/0af37c217edf15fa21dac1c40822086df356c6bb
- https://git.kernel.org/stable/c/1370badf6b823ce3cde39a65f46f9e5dc7b4bf43
- https://git.kernel.org/stable/c/74f577c722c99248d804eca18e7de7c5e47549d7
- https://git.kernel.org/stable/c/9154542070ca7eadb3c764a882f39a127677854b
- https://git.kernel.org/stable/c/ba6c4fc662853f6662e4db060cf88ee994053e21
Provider assertions
1Linux · cna
btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b16d509076951486c83d6e0ad2ffc1244a6149324f11781a74a18aa9f93a0c4a
- Ingested
- 03 Oct 2026, 11:47:00 UTC
- Source record
- Official CVE record