Skip to contentSkip to conversation

CVE-2026-72187: ntfs: avoid self-deadlock during inode eviction

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ntfs: avoid self-deadlock during inode eviction

An attribute-list update performed while allocating clusters can drop the last reference to the temporary attribute inode. Evicting that inode drops its reference to the base inode and can invoke ntfs_drop_big_inode() for the base inode from within the base inode's own writeback path.

If the base inode is unlinked, ntfs_drop_big_inode() calls truncate_setsize(), which waits for the inode's folio writeback to complete. The same writeback worker is responsible for completing that writeback, so it waits for itself indefinitely.

Prevent this self-deadlock by grabbing a reference to the base inode at the beginning of ntfs_writepages() and releasing it at the end of the function. This defers eviction until all bios have been submitted, allowing the wait for folio writeback to complete safely.

The Linux kernel CVE team has assigned CVE-2026-72187 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.1 with commit b041ca562526b3c4a71b41b80ba5e520eac636ad and fixed in 7.1.5 with commit 5a5f877c5df7605e9bae524a25ec0df9b9cb8ea8
	Issue introduced in 7.1 with commit b041ca562526b3c4a71b41b80ba5e520eac636ad and fixed in 7.2-rc3 with commit 77dc384207d5fa63ba97c3bf3285fe1215a1cbf6

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-72187

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/aops.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/5a5f877c5df7605e9bae524a25ec0df9b9cb8ea8
	https://git.kernel.org/stable/c/77dc384207d5fa63ba97c3bf3285fe1215a1cbf6