{"id":"CVE-2026-97415","revision":"ea24e0100cb743dfba16b23970fd2a55","records":[{"revision":"ea24e0100cb743dfba16b23970fd2a55","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-97415","aliases":[],"title":"btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF\n\nROOT_REF and ROOT_BACKREF items contain a struct btrfs_root_ref followed\nby the subvolume name. Several readers assume that this layout is already\nvalid and then use the on-disk name length directly. A corrupted item can\ntherefore make those readers address bytes outside the item, and\nBTRFS_IOC_GET_SUBVOL_INFO can copy too many bytes into its fixed-size UAPI\nname buffer.\n\nValidate ROOT_REF and ROOT_BACKREF items in tree-checker before any reader\nuses them. Reject records that do not contain a non-empty name, whose\nname_len does not exactly describe the remaining item payload, or whose\nname exceeds BTRFS_NAME_LEN.\n\nFor BTRFS_IOC_GET_SUBVOL_INFO, copy only the validated on-disk name_len\ninstead of deriving the copy length from the item size. The ioctl result is\nzeroed when allocated. That leaves the existing trailing zero byte\nuntouched.","state":0,"publishedAt":"2026-09-24T16:03:22.78+00:00","modifiedAt":"2026-10-03T10:58:06.771+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/ioctl.c\",\n                        \"fs/btrfs/tree-checker.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"b64ec075bded2b30bcd90af5aa5256d2237c885d\",\n                            \"lessThan\": \"1370badf6b823ce3cde39a65f46f9e5dc7b4bf43\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b64ec075bded2b30bcd90af5aa5256d2237c885d\",\n                            \"lessThan\": \"ba6c4fc662853f6662e4db060cf88ee994053e21\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b64ec075bded2b30bcd90af5aa5256d2237c885d\",\n                            \"lessThan\": \"9154542070ca7eadb3c764a882f39a127677854b\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b64ec075bded2b30bcd90af5aa5256d2237c885d\",\n                            \"lessThan\": \"74f577c722c99248d804eca18e7de7c5e47549d7\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b64ec075bded2b30bcd90af5aa5256d2237c885d\",\n                            \"lessThan\": \"0af37c217edf15fa21dac1c40822086df356c6bb\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/ioctl.c\",\n                        \"fs/btrfs/tree-checker.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4.18\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.18\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.189\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.158\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.111\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.53\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/1370badf6b823ce3cde39a65f46f9e5dc7b4bf43","https://git.kernel.org/stable/c/ba6c4fc662853f6662e4db060cf88ee994053e21","https://git.kernel.org/stable/c/9154542070ca7eadb3c764a882f39a127677854b","https://git.kernel.org/stable/c/74f577c722c99248d804eca18e7de7c5e47549d7","https://git.kernel.org/stable/c/0af37c217edf15fa21dac1c40822086df356c6bb"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-97415","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-97415","identifiers":["CVE-2026-97415"]},"retained":false,"historicalAffected":[]}],"coverage":[]}