AZL-116740: CVE-2026-100009 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ntfs: set the volume dirty bit unconditionally on metadata changes
The callers in file.c and namei.c skip ntfssetvolumeflags() when the in-memory volflags already show VOLUMEISDIRTY, but that check runs without any lock: if it observes the bit set and ntfssyncfs() clears it under the mreclock before the caller's metadata update completes, the set is skipped and the volume can end up clean on disk despite the modification, so chkdsk will not run on the next mount.
Drop the caller-side checks and call ntfssetvolumeflags() unconditionally: ntfswritevolumeflags() already skips the write under the mreclock when the combined value is unchanged. That unconditional call costs one mreclock acquisition per metadata operation even in the already-dirty steady state; it cannot be avoided, because deciding to skip the call without the lock is itself what allows a concurrent ntfssyncfs() clear to lose the set.
The IOCBNOWAIT path in ntfsfilewriteiter() goes through the same sleeping call: a RWFNOWAIT write can block in the marking, as it already could before this change whenever the volume appeared clean. Giving that path a non-blocking variant is left as follow-up work. The callers keep the pre-existing behavior of proceeding when the marking fails, so the dirty bit remains best-effort.
This closes the variant where the set is skipped outright. A clear for a concurrent, error-free sync can still land between the set and the end of the metadata operation; that mark-at-start lifecycle is pre-existing and is not changed by this patch.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In file.c and namei.c, drop the caller-side checks and call ntfs_set_volume_flags() unconditionally when metadata changes, so the volume dirty bit is set even when it is already marked dirty.
Event History
Frequently Asked Questions
Which deployments are most likely to encounter this issue?
The issue applies to Azure Linux systems using the kernel package version 6.6.161.1-1 with NTFS volumes that undergo metadata changes. The race requires a metadata update to overlap with ntfs_sync_fs() clearing the volume dirty flag.
What is the practical effect if the race occurs?
The NTFS volume can be left marked clean on disk even though a metadata modification occurred. As a result, chkdsk may not run when the volume is next mounted.
Can a RWF_NOWAIT write be affected operationally?
Yes. The metadata-dirty marking path can sleep, so an IOCB_NOWAIT/RWF_NOWAIT write can block there. The provided data notes that this was already possible when the volume appeared clean.