Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 BF4D93624DE for ; Sat, 15 Aug 2026 06:16:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774584; cv=none; b=ehB1dby0v1VC1R4H2/gGu6boJhb93AJzdO4VUV5EDiJJludEQjlFooeVUCly2nWT9HzUl+EDJKWeGC4JsSuxvfUYOzXnDq8wN/9r75D04J6XDbkW5fPr7PZPx1hHkAHuklLKMbyyRT5SQWcRY3EgqB0jjyUS4yn1CsGofjV0uQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774584; c=relaxed/simple; bh=p2k8Qer4O/Xc83/OGFCobPbpXItKW7/h7w+TnfGFWAU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KVmowKf80kc5YDEGYJq1X0qg6vZsPSQZIvE4aU4HN81tKX3W6LI2qTpb9mFW9fo/Eoa1L6c8otImu/zyLLUUP/x9jPqoh2leuJMvRvoLGQpkaAUjWTggUqoARyy16j/BBQDhXGc4XVwdArvZ9QMqmv59qF5Y5pBzwW+za95MHCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FP1trZ8u; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FP1trZ8u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22F211F000E9; Sat, 15 Aug 2026 06:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774583; bh=gbm29ImDnz9mHPLWcGNKXf8IIhYcqGOL0l7PYvsKgEg=; h=From:To:Cc:Subject:Date:Reply-To; b=FP1trZ8uABJQ5mWjicmzUzfEtWAyxsMGAOukJH2cSe2Q8O4e9lHHyoV9enTWADbiQ DHFRTp6wTKsTlOIwjgZiJkd/T1MnkiiK4ypcp+agOjShxuLn8lZXv0d8a2OYnATcp7 0MX+/aU9IcpoY7/VwVi8UcJMRmwRpHwidxuafyYw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72203: ntfs: skip extent mft records in writeback to prevent deadlock Date: Sat, 15 Aug 2026 15:04:42 +0900 Message-ID: <2026081544-CVE-2026-72203-c54a@gregkh> X-Mailer: git-send-email 2.55.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=3505; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+2NwlBCfSXsBLjBtpTzbN8OKJ1shhcfJwxV3kZMc2Q0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDCe8edPtfby1zimKXcrc/X5hjfH6B9Eqcq89Nur7x 4aVft7TEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJzGCYyRixYZPj8RkcB3oO r9+4+OVveS/V1wwLTlbWrhJmNF+Y+HyiV8Nbv8fd1SsCAQ== 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: ntfs: skip extent mft records in writeback to prevent deadlock This patch fixes the ABBA deadlock between extent_lock and extent mrec_lock triggered by xfstests generic/113, that occurs since the commit 6994acf33bae ("ntfs: use base mft_no when looking up base inode for extent record"). Path A (inode writeback): VFS writeback -> ntfs_write_inode() -> __ntfs_write_inode() -> mutex_lock(&ni->extent_lock) -> mutex_lock(&tni->mrec_lock) Path B (MFT folio writeback): VFS writeback of $MFT dirty folios -> ntfs_mft_writepages() -> ntfs_write_mft_block() -> ntfs_may_write_mft_record() -> holds one extent mrec_lock from a previous iteration -> tries to acquire another base inode extent_lock By removing all extent_lock and extent mrec_lock acquisition from the MFT folio writeback path, the ABBA lock ordering is eliminated: Path A: __ntfs_write_inode(): extent_lock -> mrec_lock Path B (removed): ntfs_write_mft_block(): mrec_lock -> extent_lock Path B is always redundant for extent records because: 1. mark_mft_record_dirty(ext_ni) does NOT dirty the MFT folio. It only sets NInoDirty(ext_ni) and marks the base VFS inode dirty via __mark_inode_dirty(I_DIRTY_DATASYNC), which triggers Path A. Therefore, normal extent modifications never create a situation where the MFT folio is dirty and Path B is not scheduled. 2. The MFT folio only gets dirtied via ntfs_mft_mark_dirty() inside ntfs_mft_record_alloc(). But all identified callers in attrib.c (ntfs_attr_add, ntfs_attr_record_move_away, ntfs_attr_make_non_resident, ntfs_attr_record_resize) follow through with mark_mft_record_dirty(), which triggers Path A to write the complete record. 3. ntfs_evict_big_inode() calls ntfs_commit_inode() before freeing extent inodes, ensuring all dirty extents are flushed via Path A before the base inode leaves the icache. The Linux kernel CVE team has assigned CVE-2026-72203 to this issue. Affected and fixed versions =========================== Fixed in 7.1.5 with commit f831ab09d521898bf1dd99bf5adfd630ea1428e3 Fixed in 7.2-rc1 with commit 76bc14c7097ff678b2b5dbfd4fa33b46897d87ce 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-72203 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/ntfs/mft.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/f831ab09d521898bf1dd99bf5adfd630ea1428e3 https://git.kernel.org/stable/c/76bc14c7097ff678b2b5dbfd4fa33b46897d87ce