Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 82A22136A for ; Wed, 18 Sep 2024 07:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643864; cv=none; b=APui5kjaFC2ToHac3zXmDnw9m5TMuUvSnvM2+fzX29qU08BRvuJJdb53iLCITZv90W25f/aflD32fdniWXhlzgJGVN37ybK80TTe71aOoWJhddCZECuD24bJ35LW7QOsC3utgNcA9HA9Xvm8o4cN3+82StK2YUhjPy2zgsy0Cbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643864; c=relaxed/simple; bh=7EOnfLtMsNAW0yTaId9IP0PKB7zxD3KqV26wGd0IQSA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uGFWDyenlgMwGdPgngxAGj+8vjLxq58Jaufsm194SRF9Z+mRlf4y7zjvmT3phNTC9zjehSE0Z35OfmsAEPxjTs+94kt/Tolt8XaWG66GBselCCIybUXtZPzJqyhrgj31lZQpanTeNNPcHWUYLgyQhxde3WsIzNYTPE8Q9j/HnMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RtNUcmqs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RtNUcmqs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA0B5C4CEC3; Wed, 18 Sep 2024 07:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643864; bh=7EOnfLtMsNAW0yTaId9IP0PKB7zxD3KqV26wGd0IQSA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RtNUcmqsFsw3UBAmCGzM+LD1Z2n0Og5glLfbe6PxVOF1jawxQR6mTjv3uBUhYPm3+ okII7r4AA4UkSeEtgcWq6P8kI0QW/amYwcka2SzY4Hpoyz/0D29lHPVhauQqFb47q6 0QkrcsdzbwO6s7NaDp96wzs4GkENpyxizIbIcXkw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46752: btrfs: replace BUG_ON() with error handling at update_ref_for_cow() Date: Wed, 18 Sep 2024 09:16:47 +0200 Message-ID: <2024091839-CVE-2024-46752-49e7@gregkh> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2196; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7EOnfLtMsNAW0yTaId9IP0PKB7zxD3KqV26wGd0IQSA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6sKDD6+RX913z/ifRU2NVaexbkGUAI/ot9Bpy9a8S 1W33Z7VEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO57cIwP+jHvV+WntJ57byx ua+viJbN5LWJZ5jDfVt2QvLl+vam/Zf3lF1Y2bI4kkcQAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: btrfs: replace BUG_ON() with error handling at update_ref_for_cow() Instead of a BUG_ON() just return an error, log an error message and abort the transaction in case we find an extent buffer belonging to the relocation tree that doesn't have the full backref flag set. This is unexpected and should never happen (save for bugs or a potential bad memory). The Linux kernel CVE team has assigned CVE-2024-46752 to this issue. Affected and fixed versions =========================== Fixed in 5.15.167 with commit b50857b96429 Fixed in 6.1.110 with commit 0fbac73a9728 Fixed in 6.6.51 with commit 41a0f85e268d Fixed in 6.10.10 with commit f895db00c65e Fixed in 6.11 with commit b56329a78231 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-2024-46752 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/ctree.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/b50857b96429a09fd3beed9f7f21b7bb7c433688 https://git.kernel.org/stable/c/0fbac73a97286a7ec72229cb9b42d760a2c717ac https://git.kernel.org/stable/c/41a0f85e268d72fe04f731b8ceea4748c2d65491 https://git.kernel.org/stable/c/f895db00c65e5d77c437cce946da9ec29dcdf563 https://git.kernel.org/stable/c/b56329a782314fde5b61058e2a25097af7ccb675