{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142830",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.331Z",
        "datePublished": "2026-12-03T03:20:46.592Z",
        "dateUpdated": "2026-12-04T03:25:12.258Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:25:12.258Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: do not use a stale runlist pointer when undoing $MFT extension\n\nWhen ntfs_mft_data_extend_allocation_nolock() fails after it has\nrebuilt the mapping pairs of the last $MFT data extent, undo_alloc\ntruncates the runlist and then rebuilds the old mapping pairs from rl2,\na pointer into the runlist taken before the truncation.\nntfs_rl_truncate_nolock() can reallocate the runlist, and KASAN then\nreports a use-after-free in ntfs_mapping_pairs_build().\n\nPass the start of the runlist instead, and hold the runlist lock for\nreading while the mapping pairs are built from it.\nntfs_mapping_pairs_build() skips to the element containing the first\nvcn by itself."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - ntfs_create() and ntfs_mkdir() in fs/ntfs/namei.c call __ntfs_create() then ntfs_mft_record_alloc(), which calls ntfs_mft_data_extend_allocation_nolock() when $MFT allocated_size cannot hold the new record. The stale rl2 points into that in-memory runlist; ntfs_rl_truncate_nolock() frees it on undo_alloc.\nAC:H - ntfs_mapping_pairs_build() is called on rl2 only after mp_rebuilt is set, once ntfs_attr_record_resize() has succeeded and a later step fails. The reported repro forces ntfs_attr_lookup() of the vcn-0 $DATA extent to fail; ntfs_read_inode_mount() rejects a volume that lacks that extent, and a normal create does not fail the lookup.\nPR:L - ntfs_create() checks only NVolShutdown before __ntfs_create() and ntfs_mft_record_alloc(). The gate is write permission on the parent directory; that path has no CAP_SYS_ADMIN check. ntfs_fs_type is FS_REQUIRES_DEV|FS_ALLOW_IDMAP and has no FS_USERNS_MOUNT.\nUI:N - The process that calls ntfs_create() or ntfs_mkdir() is the one that needs the new MFT record, and that syscall enters ntfs_mft_data_extend_allocation_nolock() directly. The vcn-0 ntfs_attr_lookup() error that selects undo_alloc is an error return inside that function.\nS:U - The freed object is the host kernel $MFT runlist, and ntfs_mapping_pairs_build() writes into the mapped $MFT attribute record. Both are inside the same kernel security authority.\nC:H - ntfs_rl_realloc() kvfree()s the runlist, then ntfs_mapping_pairs_build() reads rl->length, rl->lcn and rl[1].vcn and advances rl while length is non-zero. That walk is not capped at the old allocation, so a reused slab discloses that object and the following heap bytes.\nI:H - ntfs_write_significant_bytes() stores those freed lcn and length values into the live $MFT/$DATA mapping pairs at a->data.non_resident.mapping_pairs_offset. Reclaiming the runlist slot chooses the LCNs written into $MFT, so later MFT record I/O uses attacker-chosen clusters.\nA:H - The patch records a KASAN slab-use-after-free in ntfs_mapping_pairs_build() when undo_alloc passes rl2 after ntfs_rl_truncate_nolock(). Reading rl2->length oopses if that kvfree'd page is unmapped, on the path that grows $MFT."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ntfs/mft.c"
                    ],
                    "versions": [
                        {
                            "version": "1e9ea7e04472d4e5e12e58c881eaacfb3e49b669",
                            "lessThan": "387a7e579d841ff45b3010edc91d8bc043f0ffd5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1e9ea7e04472d4e5e12e58c881eaacfb3e49b669",
                            "lessThan": "258239e79b842e5246fb7f50758d9d15430f4102",
                            "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/mft.c"
                    ],
                    "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/387a7e579d841ff45b3010edc91d8bc043f0ffd5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/258239e79b842e5246fb7f50758d9d15430f4102"
                }
            ],
            "title": "ntfs: do not use a stale runlist pointer when undoing $MFT extension",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}