Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-100010

ntfs: fix volume flag update races

Published 30/11/2026 · Updated 02/12/2026 · Linux

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.

Affected products and versions

Linux Linux6251f0b0de7d645e3591931ca4c11d8322c1866f – < a3f524d243100c952a44fdcd1382916609b49b03 · 6251f0b0de7d645e3591931ca4c11d8322c1866f – < 56a64ee0f99d4ca1756cf743f951c110d39401e5Fixed in: a3f524d243100c952a44fdcd1382916609b49b03 · 56a64ee0f99d4ca1756cf743f951c110d39401e5
Linux Linux7.1Fixed in: 7.3.4 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.