CVE-2026-72477: fs/ntfs3: call _ntfs_bad_inode() when failing to rename
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: call _ntfs_bad_inode() when failing to rename
It is safe to call _ntfs_bad_inode on live inodes since:
commit 519b078998ce ("fs/ntfs3: Exclude call make_bad_inode for live nodes.")
The WARN_ON was added when it wasn't safe by:
commit d99208b91933 ("fs/ntfs3: cancle set bad inode after removing name fails")
Replace the WARN_ON with a call to _ntfs_bad_inode() to prevent further operations on the inconsistent inode.
The Linux kernel CVE team has assigned CVE-2026-72477 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit 519b078998ce6e729f98dccf35505b4756985d11 and fixed in 7.1.5 with commit ff825bf0521f6da2f30878cbad18ab7b341bc31b Issue introduced in 6.17 with commit 519b078998ce6e729f98dccf35505b4756985d11 and fixed in 7.2-rc1 with commit e8ed78f40eecd0176fda71d673f6957c98e7ffbe
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-72477
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/ntfs3/frecord.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/ff825bf0521f6da2f30878cbad18ab7b341bc31b https://git.kernel.org/stable/c/e8ed78f40eecd0176fda71d673f6957c98e7ffbe