Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5870945C701 for ; Thu, 24 Sep 2026 16:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266317; cv=none; b=soP7mLCsR1YUtMKvaImGT1LqcNYIOmITNFG1RLIZnAeXN4uYq4KbsMkXdia+UEXTjmkXy/GMaLn3AWaAPL5Eu7iyfNQrluWdiY/xuIjIymluKCyK6L6X0F+MeX5eeezcSIkdccYeZ25zrXBLPggtKgsSNhXm/Q8VX4HeRTVPuFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266317; c=relaxed/simple; bh=0xXlfvhA/qoauC3AyHHL9JZYXq6FW4At/NAk1OKUuUo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pMELm21wTUcK9e8+2G66XhH0ThIfgfJU5tYwaoIQ7wNEiNACuDpTeDgGu9qHQ6MGB8DPyi4HoHwTaBXfJ6ewuSHp1E/rq9Cq1UgW3y5mUZCkfy9ZmCb+nurCRaLJPwFD/1eFsWizWI5Uz669u/GDQgvq/SXJfJFVVHTeu4xMN/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JeA2Fwde; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JeA2Fwde" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D06881F000FF; Thu, 24 Sep 2026 16:11:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266316; bh=Ct3d/KTw+/msz/VM9krYahW6ms4GByYeNIBdxH6MzeA=; h=From:To:Cc:Subject:Date:Reply-To; b=JeA2FwdeWxI6Fi0+Fp6kojv4cKpwrEASx38YdnEOIuOamQSmwsJqemT6Z1duTKMBc vQVcH9s0BII8lXSQG0lmxpdJXb/sz9bew+2L0rqNAhjbp/v3GvIUhBpuKwi+gvTEq2 wB6XvO66Tj00ddHJRFU8nkwdJ5nr5Eqf5cLKO7CY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97415: btrfs: tree-checker: validate names in ROOT_REF and ROOT_BACKREF Date: Thu, 24 Sep 2026 18:03:15 +0200 Message-ID: <2026092426-CVE-2026-97415-8b4b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2636; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fkRsGhJBDjcvdhMXxvwaFN5Q092wuJqGaI0y4+o7ut8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPSd5KstPMePZwTSHOb21TjVdXOSW35yffdrsHhc/X DVYGH2mI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbik8Mw3zv+jvJiz7vzLh1x rE7pyDlVsOnpZ4b55fqrYrL7H/NHhs65kLT/6o+zGsW1AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-97415 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 9154542070ca7eadb3c764a882f39a127677854b Fixed in 6.18.53 with commit 74f577c722c99248d804eca18e7de7c5e47549d7 Fixed in 7.2 with commit 0af37c217edf15fa21dac1c40822086df356c6bb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97415 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/btrfs/ioctl.c fs/btrfs/tree-checker.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/9154542070ca7eadb3c764a882f39a127677854b https://git.kernel.org/stable/c/74f577c722c99248d804eca18e7de7c5e47549d7 https://git.kernel.org/stable/c/0af37c217edf15fa21dac1c40822086df356c6bb