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 BE4A63C8724 for ; Fri, 3 Apr 2026 15:26:06 +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=1775229966; cv=none; b=N7oP6kjNzgaJueDLEKSBJTjpPyA3dUnYyloPcS2ZKuhRJ2gUCLjKUKUCkbJ6u2eVKXmnWHI2ypsJuwdx1CiX4oR2D041uEdZOcih4hBHCmXRfwqc0ecA1GYvKzJjsI1gnM1pp9oJvFwipgor4bEnkvUoMRnkto8s6ayS0MBfT94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229966; c=relaxed/simple; bh=cTH9f1Nu9tGC6+vBBJ9mE3kHU5hhC1U2K2zw5cSlHXw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QaJaqV0+1Ta5Z7DM5bNDkr9pcER0Ugsn4YLslhtHB8TuwFSstXjFWxd8aylMe7k1tTPWvbCpmIB29YfInY9HVTTiEq41ltILZDpgBRCuqkzkuN23sDIz7q1PGiuSyczIhkiKxepDNoYa6sjwVPFc8SBlI2SdJTBTRBnuDo6sA5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eGtTPosr; 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="eGtTPosr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCD86C2BCAF; Fri, 3 Apr 2026 15:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229966; bh=cTH9f1Nu9tGC6+vBBJ9mE3kHU5hhC1U2K2zw5cSlHXw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=eGtTPosrLC8A4h2r/P835JJMxiQfUQcgKKD8Vv1C/xp1AY9XfSgdbflLDng1eJz/y aJqVNpM+OJaeZdOzKNNvJq5SK3StCFSR0r6brgUh8vvv7i8ZeK2jq7sbA4wro4NMc+ YlSnqN6vJ0kpBeD7A/xumoGfyJFdEaTUaVEfk8Fw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23465: btrfs: log new dentries when logging parent dir of a conflicting inode Date: Fri, 3 Apr 2026 17:18:46 +0200 Message-ID: <2026040320-CVE-2026-23465-9c96@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3848; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d64xkFpuCkECbb6GFf0ZuzpVxTFqZHrqZSZUBm1fhoI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb9loMe/KyNk2c9q7wj8fLxbqBlToNV3LSefqDL2n+ mxvurpbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkYRjDPF3e6WsLDj08Xaht J5ER5pIb/6UmkmHBZbZfE28uiVK2/rt+84ZWQ//MdWLxAA== 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: log new dentries when logging parent dir of a conflicting inode If we log the parent directory of a conflicting inode, we are not logging the new dentries of the directory, so when we finish we have the parent directory's inode marked as logged but we did not log its new dentries. As a consequence if the parent directory is explicitly fsynced later and it does not have any new changes since we logged it, the fsync is a no-op and after a power failure the new dentries are missing. Example scenario: $ mkdir foo $ sync $rmdir foo $ mkdir dir1 $ mkdir dir2 # A file with the same name and parent as the directory we just deleted # and was persisted in a past transaction. So the deleted directory's # inode is a conflicting inode of this new file's inode. $ touch foo $ ln foo dir2/link # The fsync on dir2 will log the parent directory (".") because the # conflicting inode (deleted directory) does not exists anymore, but it # it does not log its new dentries (dir1). $ xfs_io -c "fsync" dir2 # This fsync on the parent directory is no-op, since the previous fsync # logged it (but without logging its new dentries). $ xfs_io -c "fsync" . # After log replay dir1 is missing. Fix this by ensuring we log new dir dentries whenever we log the parent directory of a no longer existing conflicting inode. A test case for fstests will follow soon. The Linux kernel CVE team has assigned CVE-2026-23465 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit a3baaf0d786e22fc86295fda9c58ba0dee07599f and fixed in 6.6.130 with commit 56e72c8b02d982be775d9df025357c152383ee84 Issue introduced in 5.1 with commit a3baaf0d786e22fc86295fda9c58ba0dee07599f and fixed in 6.12.78 with commit f556b1e09d054e31f464c0fd37280c2b5a393fee Issue introduced in 5.1 with commit a3baaf0d786e22fc86295fda9c58ba0dee07599f and fixed in 6.18.20 with commit 1cf30c73602c69d750c9345c47f2c0e9d0cfb578 Issue introduced in 5.1 with commit a3baaf0d786e22fc86295fda9c58ba0dee07599f and fixed in 6.19.10 with commit 6f5a51969b1deb79aefd2194b48fe7e78e72ff7e Issue introduced in 5.1 with commit a3baaf0d786e22fc86295fda9c58ba0dee07599f and fixed in 7.0-rc5 with commit 9573a365ff9ff45da9222d3fe63695ce562beb24 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-2026-23465 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/56e72c8b02d982be775d9df025357c152383ee84 https://git.kernel.org/stable/c/f556b1e09d054e31f464c0fd37280c2b5a393fee https://git.kernel.org/stable/c/1cf30c73602c69d750c9345c47f2c0e9d0cfb578 https://git.kernel.org/stable/c/6f5a51969b1deb79aefd2194b48fe7e78e72ff7e https://git.kernel.org/stable/c/9573a365ff9ff45da9222d3fe63695ce562beb24