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 229CF2D5943 for ; Mon, 15 Sep 2025 12:37:00 +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=1757939821; cv=none; b=O+WVFWmxIK2PYJFuwBVgRs72L3/untzuSTSTAmjruaF4utbmPOURTMmGjtj53aVlPipad1Mr3dUbrDWE/VRLAy+CwnVn8XYQYNNDQ5Y12S1wyeU3B7Sg/gqOmo/E5IOeS47TNFD05CMBRdzfRSO8WjoKnpzd+J4WrC4ewv7Z5BE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757939821; c=relaxed/simple; bh=YT4FMtjN8sWvtLTvP5DyuyFRnP1kH6iIuqBPBLHLEBQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JD1jKnW8/iJj2EVBrzAqPzUjPiJ9Bra6h9YNy00fkCLXeZDNdCAcYK+3p5/FVCtSrHlkjC/UrqZjr9C323wAANa2eGSPjJhw5WxuK7/m0t5TRE4GHOThKxh0I0mpQobuTURb80pOICG4LisM5zXyBarUvaviVDgMvxHpelkiSDg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vWLg8mE9; 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="vWLg8mE9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D8F4C4CEF1; Mon, 15 Sep 2025 12:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757939820; bh=YT4FMtjN8sWvtLTvP5DyuyFRnP1kH6iIuqBPBLHLEBQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vWLg8mE9AeCGZ/UNHNWE17jfINl5mOfxb8NZhgSTmhIa8ks2u3pODNLmg806NXDbs lO1iipP6ruo7SNSEoPdHelIkMBJctxxiNC4SspKDzlvOmVLNYyL3FLV0dt3nheqliH kDlvh0tulVd1eFAk18p6CRRiO3zZuPDF2cywa8Lo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39800: btrfs: abort transaction on unexpected eb generation at btrfs_copy_root() Date: Mon, 15 Sep 2025 14:36:50 +0200 Message-ID: <2025091549-CVE-2025-39800-6b30@gregkh> X-Mailer: git-send-email 2.51.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=2353; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LnvtAmSOnqTMtWpTL6g0GCMwQ0ruoLKIl4iHUp+LNLM=; b=kA0DAAIRMUfUDdst+ykByyZiAGjICGHI8qfosvOR5X4lTDushonWs4zkX+aV4rXcAmcrIdHFP 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjICGEACgkQMUfUDdst+ykR3gCfUo+r TNUB3OcevQweDht/qVg7U/oAoL1Dn/M/8T6snmJMSQYD0qW1wpGa 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: abort transaction on unexpected eb generation at btrfs_copy_root() If we find an unexpected generation for the extent buffer we are cloning at btrfs_copy_root(), we just WARN_ON() and don't error out and abort the transaction, meaning we allow to persist metadata with an unexpected generation. Instead of warning only, abort the transaction and return -EUCLEAN. The Linux kernel CVE team has assigned CVE-2025-39800 to this issue. Affected and fixed versions =========================== Fixed in 6.1.149 with commit 4290e34fb87ae556b12c216efd0ae91583446b7a Fixed in 6.6.103 with commit 4734255ef39b416864139dcda96a387fe5f33a6a Fixed in 6.12.44 with commit da2124719f386b6e5d4d4b1a2e67c440e4d5892f Fixed in 6.16.4 with commit f4f5bd9251a4cbe55aaa05725c6c3c32ad1f74b3 Fixed in 6.17-rc1 with commit 33e8f24b52d2796b8cfb28c19a1a7dd6476323a8 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-2025-39800 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/4290e34fb87ae556b12c216efd0ae91583446b7a https://git.kernel.org/stable/c/4734255ef39b416864139dcda96a387fe5f33a6a https://git.kernel.org/stable/c/da2124719f386b6e5d4d4b1a2e67c440e4d5892f https://git.kernel.org/stable/c/f4f5bd9251a4cbe55aaa05725c6c3c32ad1f74b3 https://git.kernel.org/stable/c/33e8f24b52d2796b8cfb28c19a1a7dd6476323a8