CVE-2026-98315: ntfs: protect runlist updates with the runlist lock
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ntfs: protect runlist updates with the runlist lock
ntfs_non_resident_attr_shrink() calls runlist helpers that require the runlist write lock, but did not hold it while freeing clusters and truncating the runlist. Serialize those operations and the resident conversion with the runlist lock.
ntfs_attr_map_cluster() can merge a newly allocated run before updating mapping pairs. If the update fails, free the clusters and restore both the in-memory runlist and on-disk mapping pairs from a saved runlist. Mark the volume in error if either rollback step fails.
The Linux kernel CVE team has assigned CVE-2026-98315 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 495e90fa334828d4119061e2726af51d0a0fb4ed and fixed in 7.2.8 with commit 742797432e8c9b0dd54ecc523c185e26b09d79a0 Issue introduced in 7.1 with commit 495e90fa334828d4119061e2726af51d0a0fb4ed and fixed in 7.3-rc4 with commit 91709ba5d6d709b2b663287b7e871e2c6b480502
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-98315
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/attrib.c
fs/ntfs/attrib.h
fs/ntfs/attrlist.c
fs/ntfs/attrlist.h
fs/ntfs/compress.c
fs/ntfs/file.c
fs/ntfs/inode.c
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/742797432e8c9b0dd54ecc523c185e26b09d79a0 https://git.kernel.org/stable/c/91709ba5d6d709b2b663287b7e871e2c6b480502