CVE-2026-100007: ntfs: persist the dirty state after the final put_super() commits
In the Linux kernel, the following vulnerability has been resolved:
ntfs: persist the dirty state after the final putsuper() commits
The just-in-case mftmirr/mft commits and the final writeinodenow() in ntfsputsuper() can record NVolErrors() after the dirty state has been persisted, so errors from those points would leave the volume unmounted with a clean on-disk dirty bit - contradicting the "cannot unmount clean" guarantee ntfssyncvolumedirtystate() is meant to provide.
Move the persistence to the end of ntfsputsuper(): keep the gated re-commits and the tail commits where they are, run ntfssyncvolumedirtystate() and the $Volume commit after the last writeinodenow(), and release vol->volino only after the sync.
The release order of the special inodes matters for the $Volume commit: writing the $Volume record mirrors it through ntfssyncmftmirror() (record number 3 is below vol->mftmirrsize), which fails with -EIO and leaves the mirror stale once vol->mftmirrino is gone, so the mirror inode is released only after that commit. vol->volino is then put before vol->mftino is dropped: if the commit failed before it could clear the dirty flag, ntfsevictbiginode() commits the inode again on its way out, and ntfswriteinode() resolves the runlist through vol->mftino.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ntfs_put_super(), persist the dirty state after the final commits: keep the gated mftmirr/mft commits and final write_inode_now(), sync the volume dirty state before releasing vol->vol_ino, and release vol->vol_ino only after the sync.