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 13F0015B0F2 for ; Wed, 18 Sep 2024 07:17:47 +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=1726643868; cv=none; b=CBz9Hy1/fYdQgy+tkB8M2QuA9s88ThracQoDI7t8KdrOwfTx3/5FL9Av2DJDwu+mhgNGqItgqnrqQZWMRG/0abjzcn8VkOjM71UhQF6oQx55C6ZRhfTxqg1r218g1sE5ReQ6Is4oQFmCTWfYF5eUyE7iDrCdxeqaH7bBZWGP6+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643868; c=relaxed/simple; bh=8XJN58B8S+ZhU+nY91tY3w/CXUN/tlFzUfnwVon+9tE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cGuxRfg0mlFQwlmNEDccbq3A1fdfIBlAkDOnLfqvf7A2/TLrCASEzdk/vispo6HEZQDK3ZpmG1Qkjgqb0OGbBr7y9/7rQgaYiueIZTSr9HB4/+pvBC9hZRjmfl5uFodkeSyfhE3+mBkqFvjbSJuH1b2LEsosi4i+RnfyXP3UZwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iy8EKGcx; 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="iy8EKGcx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F797C4CEC3; Wed, 18 Sep 2024 07:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643867; bh=8XJN58B8S+ZhU+nY91tY3w/CXUN/tlFzUfnwVon+9tE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iy8EKGcxk19jkQvIQjjpMDgenYSM8Jyqk2SBTi7CXp4vOinwyOyUkSPIMXv3+prEp GPV6IO85N64TuQjGLKjoDGoh2QQz7tYPI1U0RMIAzNvlSg3BduQBrkyEmjeywIP7lb XHcqcrJYNiKJ65eW4utAg63FZ0L3L06Tcr6FscnQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46753: btrfs: handle errors from btrfs_dec_ref() properly Date: Wed, 18 Sep 2024 09:16:48 +0200 Message-ID: <2024091839-CVE-2024-46753-5ec2@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=1666; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8XJN58B8S+ZhU+nY91tY3w/CXUN/tlFzUfnwVon+9tE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6sLjc8zVg/a3aX2ZrpN72a5/snZ22Uu+ZZvlGFaZt HN32TzriGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIm8M2SYK3/Ciae4xL2UzWkb 258XGuFxmYyWDHMlNjPVvXG8UPv/mPGHg6IJDfadsnwA 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: handle errors from btrfs_dec_ref() properly In walk_up_proc() we BUG_ON(ret) from btrfs_dec_ref(). This is incorrect, we have proper error handling here, return the error. The Linux kernel CVE team has assigned CVE-2024-46753 to this issue. Affected and fixed versions =========================== Fixed in 6.10.10 with commit a7f16a7a7098 Fixed in 6.11 with commit 5eb178f373b4 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-46753 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/extent-tree.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/a7f16a7a709845855cb5a0e080a52bda5873f9de https://git.kernel.org/stable/c/5eb178f373b4f16f3b42d55ff88fc94dd95b93b1