UBUNTU-CVE-2026-97415: High severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: btrfs: tree-checker: validate names in ROOTREF and ROOTBACKREF ROOTREF and ROOTBACKREF items contain a struct btrfsrootref 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 BTRFSIOCGETSUBVOLINFO can copy too many bytes into its fixed-size UAPI name buffer. Validate ROOTREF and ROOTBACKREF items in tree-checker before any reader uses them. Reject records that do not contain a non-empty name, whose namelen does not exactly describe the remaining item payload, or whose name exceeds BTRFSNAMELEN. For BTRFSIOCGETSUBVOLINFO, copy only the validated on-disk namelen 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In the BTRFS tree-checker, validate ROOT_REF and ROOT_BACKREF items before any reader uses them: require a non-empty name, require name_len to exactly describe the remaining item payload, and require the name length not to exceed BTRFS_NAME_LEN. For BTRFS_IOC_GET_SUBVOL_INFO, copy only the validated on-disk name_len rather than deriving the copy length from the item size.