From mboxrd@z Thu Jan 1 00:00:00 1970 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 AF9D22E84A for ; Sun, 19 May 2024 10:11:56 +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=1716113516; cv=none; b=Ow9e6/iWoV8HPAQY5RKGnTlQvkQOQiddHCvTaoHfvVrLZYdNIgLSRWbMRE/+GdGI3h7pQIS15FxDPpnN9t1Q62t3HeYhcuzUe6RDk8Bf8+K2MRL2clJGBkP33scVB1IFiNhEAr23fOsPVwUQa69LIHSyEOoE9bv7a4hLhq+uGbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113516; c=relaxed/simple; bh=lp0aMS+QlgMga3n4jGnMktRNubP+ugqjdvkwz2sLr7A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MyvNks2LlJqPzDCz9NdyEhDKIfq+GpqWQM6Ke5MZ4BgDRptBWMPqBugBVWPQCmJCxfZcQQaM353LS1gOwVYUOicDyFONMm8QP4TqnFQvE7JME+cRncTXJHl4xD+sfNJOpsBaSnf1WofsuOsexZRlfwzdGoB/a+TUeR9bjVVE0RY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ki0nCPKn; 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="ki0nCPKn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 370DEC32781; Sun, 19 May 2024 10:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113516; bh=lp0aMS+QlgMga3n4jGnMktRNubP+ugqjdvkwz2sLr7A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ki0nCPKnemrjKpEmmZcK4IXCGzxXd/ZLqqTx4iO/AA2PyfuryWZIdJjuKSBXbYU86 zkQRA9J088iJJ8V5zGOjnRe0CB1WGT7pnHvMcASfRRL7x1apbtP0/9WFLnz/Ub+USu L5ewlLRc1Pdw5s3s4AadOlrvEQVuJ/ymFSDkbUwk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35935: btrfs: send: handle path ref underflow in header iterate_inode_ref() Date: Sun, 19 May 2024 12:11:29 +0200 Message-ID: <2024051917-CVE-2024-35935-cdbd@gregkh> X-Mailer: git-send-email 2.45.1 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=2412; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lp0aMS+QlgMga3n4jGnMktRNubP+ugqjdvkwz2sLr7A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeF1xjEqRD3qzlnCDbZO3eZbRRLlHvfoj89rWrb8v+u +8d85S5I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyeyrDPH3xWyHJHOsfLrrh EZ4u5PtRLYn1MMOCRR0drx6Hb5lXWBA8xfTzbr5CBn0mAA== 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: send: handle path ref underflow in header iterate_inode_ref() Change BUG_ON to proper error handling if building the path buffer fails. The pointers are not printed so we don't accidentally leak kernel addresses. The Linux kernel CVE team has assigned CVE-2024-35935 to this issue. Affected and fixed versions =========================== Fixed in 4.19.312 with commit be2b6bcc936a Fixed in 5.4.274 with commit 024529c27c8b Fixed in 5.10.215 with commit 4720d590c4cb Fixed in 5.15.155 with commit 2f6174fd4ccf Fixed in 6.1.86 with commit 9ae356c627b4 Fixed in 6.6.27 with commit c1363ed8867b Fixed in 6.8.6 with commit 03938619a1e7 Fixed in 6.9 with commit 3c6ee34c6f9c 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-35935 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/send.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/be2b6bcc936ae17f42fff6494106a5660b35d8d3 https://git.kernel.org/stable/c/024529c27c8b4b273325a169e078337c8279e229 https://git.kernel.org/stable/c/4720d590c4cb5d9ffa0060b89743651cc7e995f9 https://git.kernel.org/stable/c/2f6174fd4ccf403b42b3d5f0d1b6b496a0e5330a https://git.kernel.org/stable/c/9ae356c627b493323e1433dcb27a26917668c07c https://git.kernel.org/stable/c/c1363ed8867b81ea169fba2ccc14af96a85ed183 https://git.kernel.org/stable/c/03938619a1e718b6168ae4528e1b0f979293f1a5 https://git.kernel.org/stable/c/3c6ee34c6f9cd12802326da26631232a61743501