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 88DF72D6403 for ; Wed, 9 Jul 2025 10:44:42 +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=1752057882; cv=none; b=IyBn3BBOLHzWBAxSQEyY6fN/edDhO56A5+PLbDtiFoj1oOW+96P7RwQgJo7J+QBer+8Oo7k7geaGP4Q+6tBYZVu05nAHnKeJw2g8yfjXfZU8A7vJHAVVdZH4WR5eZnESmVLOmFDQSP+YVT7uLKC9RS2l9oyCayHMOqfUjmiL/0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752057882; c=relaxed/simple; bh=4rDMPuhq1nF1kzp07dBWbXOW6GdpIQlo79kLJl6CDG0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=psF0OeRLJZhGTTaFHg/R71THkKYAs3XCZRxFu/cgv/OvUJIMWCis3aAAEhxmAE7cTXFvm8tBNxPdhj9r4gympKz1sUZGFErOup7+ythIBH4gSMMYN4xlfaJKnPtCzGyMHHrKqzCogd5wtM35gMfcJemVhpkEBEKXkzmHoD77dUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=N59VJ7r6; 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="N59VJ7r6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19084C4CEF4; Wed, 9 Jul 2025 10:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752057882; bh=4rDMPuhq1nF1kzp07dBWbXOW6GdpIQlo79kLJl6CDG0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=N59VJ7r67dC2ttFhxjDlFGNaEYjPvvRw5BxW2pQxQJtzvRIPiTTDzGHlnlie18pp7 2kPIMwku3nGO4ZFUSLwbCEIBlVX4PuV3uOEhZ6yqby/btrRSwUQ8M9AFu7n496kHJI l1K8zyn4LntU8c67gm8wyN7MUtehBtyUXPk/re7E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38243: btrfs: fix invalid inode pointer dereferences during log replay Date: Wed, 9 Jul 2025 12:42:35 +0200 Message-ID: <2025070933-CVE-2025-38243-4b56@gregkh> X-Mailer: git-send-email 2.50.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=2162; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iWKhUUqrNpRarsJCH7vDbbgkVzu6WZdoqzUDV+ic5Lw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl57jMDygw/T189/0ENd4PF8/09VosfGv8S0tvMsdEi2 7A2c0JuRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykJoZhQZ9IzVMXZcOvygH7 dx6YU7/EyjSfnWHBic6J+fvPzP6/IfJr7AXbB2IaEn2rAA== 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: fix invalid inode pointer dereferences during log replay In a few places where we call read_one_inode(), if we get a NULL pointer we end up jumping into an error path, or fallthrough in case of __add_inode_ref(), where we then do something like this: iput(&inode->vfs_inode); which results in an invalid inode pointer that triggers an invalid memory access, resulting in a crash. Fix this by making sure we don't do such dereferences. The Linux kernel CVE team has assigned CVE-2025-38243 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit b4c50cbb01a1b6901d2b94469636dd80fa93de81 and fixed in 6.15.5 with commit ba8386d662cc51cc5382688bbf7a152b0b0b27cf Issue introduced in 6.15 with commit b4c50cbb01a1b6901d2b94469636dd80fa93de81 and fixed in 6.16-rc4 with commit 2dcf838cf5c2f0f4501edaa1680fcad03618d760 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-38243 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/tree-log.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/ba8386d662cc51cc5382688bbf7a152b0b0b27cf https://git.kernel.org/stable/c/2dcf838cf5c2f0f4501edaa1680fcad03618d760