{"id":"AZL-116737","summary":"CVE-2026-100008 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: sync the volume dirty bit with the recorded error state\n\nThe runtime metadata-corruption paths in fs/ntfs only record the\nin-memory NVolErrors() flag; whether VOLUME_IS_DIRTY ever reaches disk\ndepends on ntfs_set_volume_flags() being called by some other path,\nwhich for most error sites never happens.  A volume can therefore\nunmount with a clean on-disk flag despite recorded corruption, and\nchkdsk will not run on the next mount.\n\nPersisting the dirty bit from the error paths themselves does not work:\nthey run under a wide variety of ntfs locks, and the dirty-bit write\ntakes the $Volume mrec_lock and maps the $Volume mft record, which on\nan $MFT page-cache miss takes the $MFT runlist lock for writing.  That\nis enough to self-deadlock or form ABBA cycles from several of them:\nthe $MFT extend undo paths hold the $MFT runlist lock and then take\nvol-\u003elcnbmp_lock inside ntfs_cluster_free(); the cluster allocation and\nfree rollback paths hold vol-\u003elcnbmp_lock; and the whole mft record\nallocation tree is reachable from ntfs_write_volume_label()'s\nattribute-list maintenance while it holds the $Volume mrec_lock itself.\n\nInstead, make the persistence a property of the sync paths, which run\nwithout ntfs locks held.  The new ntfs_sync_volume_dirty_state() sets\nVOLUME_IS_DIRTY when NVolErrors() is recorded and clears it otherwise,\nevaluating the error flag under the $Volume mrec_lock.  It is called\nfrom ntfs_sync_fs(), from the remount-to-read-only path of\nntfs_reconfigure(), and from ntfs_put_super(), which previously\nevaluated NVolErrors() outside the lock before clearing the dirty bit\nunconditionally, and which now also persists the dirty bit for volumes\nwith recorded errors so they unmount with chkdsk scheduled.  The\nntfs_clear_volume_flags() wrapper, whose last callers this patch\nreplaces, has no users left and is removed.\n\nThe guarantee this provides is eventual, not instantaneous: the error\npaths record NVolErrors() with a lock-free set_bit(), so a persistence\npoint that evaluates the flag just before an error is recorded can\nstill leave the on-disk bit clean until the next one.  This is sound\nbecause NVolErrors() is sticky for the lifetime of the mount and every\npersistence point re-derives the on-disk bit from it; the last one,\nntfs_put_super(), runs after evict_inodes() on a quiesced filesystem,\nso a volume that is read-write at unmount time cannot unmount clean.\nA volume that is already read-only when the error is recorded\n(errors=remount-ro flips the superblock on the first error, as does an\nearlier remount-ro) has no persistence point left and keeps whatever\non-disk bit it had; that behaviour is unchanged.  The residual window\nis a crash between the error and the next persistence point.\n\nThe persistence paths never write a hibernated volume: resuming Windows\nfrom a modified image corrupts it.  Record the mount-time hibernation\nverdict in the new NV_Hibernated volume flag and make\nntfs_sync_volume_dirty_state() a no-op while it is set, so the dirty\nbit is left exactly as it is on disk and only the in-memory error\nstate is kept.  Without this, an rw mount of a hibernated volume with\nthe default errors=continue would gain a filesystem-internal write on\nthe first sync, remount or unmount.  Other writes to such a mount,\nlike the mount-time logfile emptying, are pre-existing and unchanged.","modified":"2026-12-01T14:17:40.963671256Z","published":"2026-11-30T14:17:14Z","upstream":["CVE-2026-100008"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100008"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-116737.json"}}],"schema_version":"1.9.2"}