{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-100008",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.452Z",
        "datePublished": "2026-11-30T13:23:02.022Z",
        "dateUpdated": "2026-12-02T09:21:17.513Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-02T09:21:17.513Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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->lcnbmp_lock inside ntfs_cluster_free(); the cluster allocation and\nfree rollback paths hold vol->lcnbmp_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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ntfs/ntfs.h",
                        "fs/ntfs/super.c",
                        "fs/ntfs/volume.h"
                    ],
                    "versions": [
                        {
                            "version": "6251f0b0de7d645e3591931ca4c11d8322c1866f",
                            "lessThan": "2254d06b1795e0ca1ed977bd604d5c5e633937d9",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6251f0b0de7d645e3591931ca4c11d8322c1866f",
                            "lessThan": "521978c4f4441953d67297286e5804485ae05698",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ntfs/ntfs.h",
                        "fs/ntfs/super.c",
                        "fs/ntfs/volume.h"
                    ],
                    "versions": [
                        {
                            "version": "7.1",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "7.1",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.1",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "7.1",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/2254d06b1795e0ca1ed977bd604d5c5e633937d9"
                },
                {
                    "url": "https://git.kernel.org/stable/c/521978c4f4441953d67297286e5804485ae05698"
                }
            ],
            "title": "ntfs: sync the volume dirty bit with the recorded error state",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}