CVE-2026-99241

ntfs: take invalidate_lock in ntfs_filemap_page_mkwrite()

Published Nov 2, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ntfs: take invalidate_lock in ntfs_filemap_page_mkwrite()

ntfs_filemap_page_mkwrite() calls iomap_page_mkwrite() without holding
mapping->invalidate_lock, so a concurrent truncate or fallocate can be
in the middle of invalidating pagecache and rewriting the runlist while
the write fault maps blocks and dirties the folio. This races with
ntfs_attr_fallocate(), which merges clusters into the in-memory
runlist, drops the runlist lock, and only afterwards zeroes the newly
allocated clusters on disk; and with the punch-hole/insert/collapse
paths that free clusters after truncating the cache.

Per Documentation/filesystems/locking.rst, ->page_mkwrite() must ensure
there are no truncate/invalidate races, "usually mapping->invalidate_lock
is suitable for proper serialization". xfs takes its mmaplock (= the
invalidate_lock rwsem) shared in exactly this path.

Take invalidate_lock shared around iomap_page_mkwrite(). The read-only
fault path is already covered because filemap_fault() itself grabs
invalidate_lock shared on instantiation/read paths; only page_mkwrite
was bypassing it in this driver.

Analysis

AI-generated

Technical impact

A race condition in the Linux kernel’s NTFS driver allows concurrent write operations and truncate/fallocate calls to manipulate the page cache without proper serialization. This can result in corrupted disk data or kernel crashes when the filesystem mapping is invalidated while new data is being written. The flaw arises because ntfs_filemap_page_mkwrite() invokes iomap_page_mkwrite() without holding mapping->invalidate_lock, violating the locking contract described in Documentation/filesystems/locking.rst. Based on the description, it is inferred that a local process with permissions to perform both write and truncate operations on a mounted NTFS partition can trigger the race, and there is no evidence of a remote exploitation vector. The runlist and page cache can be left in an inconsistent state, compromising data integrity. This vulnerability is a typical concurrency issue that may result in subtle, hard‑to‑detect corruption.

Affected Systems

The vulnerability affects Linux systems that run an unpatched Linux kernel with the NTFS file system driver. Based on the description, it is inferred that any kernel version prior to the commit referenced in the advisory is vulnerable; specific affected versions are not enumerated. Any distribution shipping such a kernel is potentially susceptible if it mounts NTFS partitions for read/write operations.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, while the EPSS score of <1% suggests a low probability of exploitation under normal conditions. The flaw is not listed in CISA KEV. It is inferred that the low EPSS score reflects limited exploitation opportunities, but the race condition still poses a serious risk to data integrity and system availability. Attackers with local privileges can trigger the flaw by coordinating truncate/fallocate and page write operations; remote exploitation remains unlikely without local access. Defects of this nature could cause data loss or a kernel panic, leading to denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch for ntfs_filemap_page_mkwrite() and reboot to ensure the new kernel is active.
  • Limit write access to NTFS partitions by employing strict file permissions or disabling write support for critical partitions until a patched kernel is in use.
  • After applying the patch, run a filesystem check on NTFS volumes (e.g., ntfsfix) to detect and repair any inconsistencies that may have arisen while the vulnerability was present.

Generated by OpenCVE AI on November 5, 2026 at 04:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ntfs: take invalidate_lock in ntfs_filemap_page_mkwrite() ntfs_filemap_page_mkwrite() calls iomap_page_mkwrite() without holding mapping->invalidate_lock, so a concurrent truncate or fallocate can be in the middle of invalidating pagecache and rewriting the runlist while the write fault maps blocks and dirties the folio. This races with ntfs_attr_fallocate(), which merges clusters into the in-memory runlist, drops the runlist lock, and only afterwards zeroes the newly allocated clusters on disk; and with the punch-hole/insert/collapse paths that free clusters after truncating the cache. Per Documentation/filesystems/locking.rst, ->page_mkwrite() must ensure there are no truncate/invalidate races, "usually mapping->invalidate_lock is suitable for proper serialization". xfs takes its mmaplock (= the invalidate_lock rwsem) shared in exactly this path. Take invalidate_lock shared around iomap_page_mkwrite(). The read-only fault path is already covered because filemap_fault() itself grabs invalidate_lock shared on instantiation/read paths; only page_mkwrite was bypassing it in this driver.
Title ntfs: take invalidate_lock in ntfs_filemap_page_mkwrite()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 2, 2026, 4:06 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 2, 2026, 4:17 PM
Modified
Nov 2, 2026, 4:17 PM
Severity
Moderate
Public date
Nov 2, 2026, 4:06 PM