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 EA36F1C860C for ; Wed, 16 Apr 2025 14:18:08 +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=1744813089; cv=none; b=g0f9t5/SpPGs+VovpcirlPpiqGUA8dsw6s4keiLp8v1FBucbCg7DJpFuYPYM3Xp7YmPbYBDB5hKrLnGpSBEfyFo9Qm+WTMndBvaaVri7A0qVVua4A5UZt6s+KmwdRmMzpRA2TA6FUxx4EdEwEXygt74gbb7t7K3bpxqJ87bwgRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744813089; c=relaxed/simple; bh=MJY01wlX9LSvhX+o13QvIPZ2teqi2KmsFSpFzMfHHPs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tn5HwCUSUDk3sHAMV+cu5f0ldfLvZZlCXmctx2zxRFaZfeHo5aSDZ0kszZgz7LVxyLVcLh08PWVismOLbyXkbA+l08tBhNGDCaqfnmF6eMJ/X9S44CmgFOLPHYPyjdaIvqhtTKCzdeHYSRh5BXgSOlk2sla+X0uXUGvuKvmbftg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zuq17fBh; 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="zuq17fBh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A24DC4CEE2; Wed, 16 Apr 2025 14:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744813088; bh=MJY01wlX9LSvhX+o13QvIPZ2teqi2KmsFSpFzMfHHPs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zuq17fBhEpJPNb56k9in7F45iZFoSoQGF2d/n/m8MK0dG9yKFljnYgKxB+Ou0B0nE LTi2WG7cjS8DOQfg+CZemR6adoWSHz6LKR4rOXGTm2E/A3oJKsgXi2fwgqnMi2XKvL +weeztPS1uQlahXBX9BpqEFjk/IXtiLDEadoJEEo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22114: btrfs: don't clobber ret in btrfs_validate_super() Date: Wed, 16 Apr 2025 16:13:25 +0200 Message-ID: <2025041625-CVE-2025-22114-721d@gregkh> X-Mailer: git-send-email 2.49.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=2101; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MJY01wlX9LSvhX+o13QvIPZ2teqi2KmsFSpFzMfHHPs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d52Uej7p+KZ43+Zvn4sN4vY9vrjgFuP6yJh6i0+L7 x9OaNKY0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATYVjMsGCfVugqBqFJz6/N 0NnQsrtqhyf7NgGG+TnT4jpidywvXHV6xq//S9Kf1FwzvA8A 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: don't clobber ret in btrfs_validate_super() Commit 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") introduces a call to validate_sys_chunk_array() in btrfs_validate_super(), which clobbers the value of ret set earlier. This has the effect of negating the validity checks done earlier, making it so btrfs could potentially try to mount invalid filesystems. The Linux kernel CVE team has assigned CVE-2025-22114 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 2a9bb78cfd367fdeff74f15b1e98969912292d9e and fixed in 6.14.2 with commit ef6800a2015e706e9852a5ec15263fec9990d012 Issue introduced in 6.14 with commit 2a9bb78cfd367fdeff74f15b1e98969912292d9e and fixed in 6.15-rc1 with commit 9db9c7dd5b4e1d3205137a094805980082c37716 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-22114 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/disk-io.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/ef6800a2015e706e9852a5ec15263fec9990d012 https://git.kernel.org/stable/c/9db9c7dd5b4e1d3205137a094805980082c37716