CVE-2026-100010

ntfs: fix volume flag update races

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ntfs: fix volume flag update races

ntfs_set_volume_flags() and ntfs_clear_volume_flags() both read
vol->vol_flags outside any lock to compute the new value before handing
it to ntfs_write_volume_flags(), which only takes ni->mrec_lock around
the actual write. The read-modify-write is therefore not atomic, and two
concurrent callers can lose an update: ntfs_sync_fs() may derive a
"clean" value from vol->vol_flags while a writer concurrently records an
error and sets VOLUME_IS_DIRTY; the locked write then silently
overwrites the freshly-set dirty bit. The on-disk volume looks clean
despite the recorded errors, so chkdsk will not run on the next mount
and corrupted metadata can persist.

Fix by moving the read-modify-write inside the mrec_lock: pass the bits
to set and to clear separately, and combine them with the current flag
state under the lock inside ntfs_write_volume_flags(). The set/clear
helpers pass only the bits to modify, not the complete flag state. The
bit manipulation is done on CPU-endian values, and the result is
converted back to little-endian before storing it. The wrappers keep
their signatures so callers are unchanged.

Analysis

AI-generated

Technical impact

This vulnerability is a race condition in the Linux kernel's NTFS volume flag handling. Concurrent callers to ntfs_set_volume_flags() and ntfs_clear_volume_flags() perform a read–modify–write on vol->vol_flags outside the mrec_lock. Because the operation is not atomic, one update can overwrite another. An attacker or an application that triggers two concurrent flag changes can cause the dirty flag to be lost. The NTFS volume may appear clean when it contains errors, so tools such as chkdsk will not run on the next mount and corruption may persist, resulting in data integrity loss.

Affected Systems

The flaw exists in the Linux kernel for all distributions using the generic Linux kernel image. The fix is contained in a commit that moved the read–modify–write inside the mrec_lock. Any kernel version prior to this commit is vulnerable, while kernels that include the commit are not affected. There are no specific product or version lists in the advisory, so it applies to all affected kernel releases.

Risk and Exploitability

The CVSS score and EPSS score are not provided in the advisory, and the vulnerability is not listed in the CISA KEV catalog. The attack requires two concurrent kernel calls manipulating NTFS volume flags, which means it is most relevant to users running NTFS filesystems on Linux with sufficient local access to trigger concurrent operations. Although no public exploits are known, the potential for unsaved filesystem metadata loss makes the risk moderate to high from a data integrity perspective. Patching the kernel mitigates the issue entirely.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the ntfs flag update race fix, then reboot the system.
  • If an immediate kernel update is not available, avoid writing to NTFS filesystems until the patch is applied, or consider remounting them read‑only to prevent concurrent write operations.
  • After applying the patch, confirm that the volume clean flag is correctly set by monitoring the dirty flag behavior or running chkdsk on the NTFS partition.

Generated by OpenCVE AI on November 30, 2026 at 15:36 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
Description In the Linux kernel, the following vulnerability has been resolved: ntfs: fix volume flag update races ntfs_set_volume_flags() and ntfs_clear_volume_flags() both read vol->vol_flags outside any lock to compute the new value before handing it to ntfs_write_volume_flags(), which only takes ni->mrec_lock around the actual write. The read-modify-write is therefore not atomic, and two concurrent callers can lose an update: ntfs_sync_fs() may derive a "clean" value from vol->vol_flags while a writer concurrently records an error and sets VOLUME_IS_DIRTY; the locked write then silently overwrites the freshly-set dirty bit. The on-disk volume looks clean despite the recorded errors, so chkdsk will not run on the next mount and corrupted metadata can persist. Fix by moving the read-modify-write inside the mrec_lock: pass the bits to set and to clear separately, and combine them with the current flag state under the lock inside ntfs_write_volume_flags(). The set/clear helpers pass only the bits to modify, not the complete flag state. The bit manipulation is done on CPU-endian values, and the result is converted back to little-endian before storing it. The wrappers keep their signatures so callers are unchanged.
Title ntfs: fix volume flag update races
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM