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 1C7973E5A31 for ; Wed, 27 May 2026 12:26:46 +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=1779884807; cv=none; b=ansfWNgESjHYDpn2P/oJfXY57t5AdbqggG4pDB47HnDGHvz4IRrfEUyImDXk/+TvM0xeBpFfrw3CAax8kV6DJs4/4vfVMxyOKdTynqyRcMVB+k+42QiAWSkmFF1YO2sSfzPrN5vvEmnKJXLJ5XviT5bL+KrkjDdH8OQ709dSurU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884807; c=relaxed/simple; bh=JQkyZm7inRw9i+Skj5nAebmdWcGjAcC8E31lEJta4Kg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X3eaHooh69RHcTOl1DPz5upyfnOtWwPEvNr+WKusYDNuR1TxWiDPi7T0jAbavZACh97svFCzxBKLeAE0ITY7G1ttIQXhzNI1pdXqgw+RAy057BzIqEO/vwv7wzjKlhp+4U85OLUSaAsErxXv/3DkBeEDMyPSs5m/36yW9xBHGko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PZMoFy+7; 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="PZMoFy+7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D1C61F000E9; Wed, 27 May 2026 12:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884806; bh=AGvAE4wg+xRD7rc9nKbGW6wt0zhIElFPA8C9NPznh8c=; h=From:To:Cc:Subject:Date:Reply-To; b=PZMoFy+7it9dHExExgt/rUnQUHdiK9XxYi81XbUkCXZkXoSGIEt3KSh8YZuIyDxfx 3pkHw5M6qgcHnKH+AgKcv2TIdERyv0LEnulZ2iRrCDUX1stMSleYZzaKQEFaJmJ/u/ 90QIN9gLLGBdmAXPj/ehVQmGEQHioFNhb3SpWp+c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45974: btrfs: fix invalid leaf access in btrfs_quota_enable() if ref key not found Date: Wed, 27 May 2026 14:20:16 +0200 Message-ID: <2026052737-CVE-2026-45974-c88c@gregkh> X-Mailer: git-send-email 2.54.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=3552; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EqXHliev7AKigBfRsEBoenm2cObCr7TpWK9+P9zgo2k=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD2W/KeRyyf3+vaPIfaXr6WdhR9y+lCldnfjqdZ2AM HNRtuyMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIWTrDgqmlheKHH915PVO2 X+3kOtvyyn1SmxnmGT18xNZiNaP5y9oFYQcyF4VGiSS7AwA= 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: fix invalid leaf access in btrfs_quota_enable() if ref key not found If btrfs_search_slot_for_read() returns 1, it means we did not find any key greater than or equals to the key we asked for, meaning we have reached the end of the tree and therefore the path is not valid. If this happens we need to break out of the loop and stop, instead of continuing and accessing an invalid path. The Linux kernel CVE team has assigned CVE-2026-45974 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 5.10.252 with commit 023545e272f369d487e6a986c1e321c6e04be1da Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 5.15.202 with commit fd4913a53e3b54ad7e161847291439fe445d6356 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 6.1.165 with commit b5b8ade9da452086e78f5d519b90d3769e354853 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 6.6.128 with commit 1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 6.12.75 with commit 0761447f6f51e1c7997960d8e6559337deed6729 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 6.18.14 with commit d7cf2314dd5e8661c05d076cd627eea9a7f76616 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 6.19.4 with commit b2bd557b75b760e4b9d209112bda19314bd64558 Issue introduced in 5.10 with commit 5223cc60b40ae525ae6c94e98824129f1a5b4ae5 and fixed in 7.0 with commit ecb7c2484cfc83a93658907580035a8adf1e0a92 Issue introduced in 5.9.7 with commit ecce1be9f2a366990d0e75dd249fb324e83c34a9 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-45974 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/qgroup.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/023545e272f369d487e6a986c1e321c6e04be1da https://git.kernel.org/stable/c/fd4913a53e3b54ad7e161847291439fe445d6356 https://git.kernel.org/stable/c/b5b8ade9da452086e78f5d519b90d3769e354853 https://git.kernel.org/stable/c/1ee1d006c9fe4d6be5527ab1c84216b80cccbe40 https://git.kernel.org/stable/c/0761447f6f51e1c7997960d8e6559337deed6729 https://git.kernel.org/stable/c/d7cf2314dd5e8661c05d076cd627eea9a7f76616 https://git.kernel.org/stable/c/b2bd557b75b760e4b9d209112bda19314bd64558 https://git.kernel.org/stable/c/ecb7c2484cfc83a93658907580035a8adf1e0a92