{"api_version":"1","generated_at":"2026-12-01T06:50:18+00:00","cve":"CVE-2026-99996","urls":{"html":"https://cve.report/CVE-2026-99996","api":"https://cve.report/api/cve/CVE-2026-99996.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99996","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99996"},"summary":{"title":"ntfs: hold the runlist lock while expanding a non-resident attribute","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: hold the runlist lock while expanding a non-resident attribute\n\nntfs_non_resident_attr_expand() changes ni->runlist.rl while it\nallocates clusters: ntfs_attr_map_whole_runlist(), the compressed\nbranch's ntfs_rl_realloc() and ntfs_runlists_merge() can each kvfree()\nthe old array.  Unless the caller already holds ni->runlist.lock, none\nof this happens under it; only the rollback takes it.  Callers without\nit include the write path, fallocate, ntfs_inode_attr_pwrite() and\nntfs_resident_attr_resize().\n\nThose callers hold mrec_lock, and the write path also inode_lock, but\nthe iomap read side takes neither: FIEMAP, page faults, readahead and\nsplice read reach ntfs_read_iomap_begin_non_resident(), which takes only\nni->runlist.lock.  A FIEMAP running while write(2) extends the same file\ncan walk the array that ntfs_runlists_merge() has just freed:\n\n  BUG: KASAN: slab-use-after-free in ntfs_attr_vcn_to_rl+0x19b/0x200\n\nA reader that finds a vcn unmapped in the stale array also maps it from\ndisk into the runlist the writer is changing, which shows up as \"Run\nlists overlap. Cannot merge!\".\n\nTake ni->runlist.lock for writing around the part of the expansion that\nchanges the runlist and allocated_size, up to and including the mapping\npairs update, as ntfs_non_resident_attr_shrink() does since commit\n91709ba5d6d7 (\"ntfs: protect runlist updates with the runlist lock\"),\nand hold it throughout the rollback, where ntfs_cluster_free() requires\nit.  The lock nests inside mrec_lock, as on the truncate-up path, which\nalready calls this function with the runlist lock held.  Where the\ncaller says it holds the lock (locked_ni == ni), assert that it holds it\nfor writing.\n\nFor an $ATTRIBUTE_LIST whose lock the caller does not hold, drop the\nlock again before the mapping pairs update: that update can resize the\nsame list through ntfs_attrlist_update_locked(), which returns -ENOSPC\nwhen told that the list's lock is held.  Holding it there made punching\nholes into a large fragmented file fail with -ENOSPC.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:42","updated_at":"2026-12-01 06:17:59"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/bebc7db05867fd84349843df5c650054f580044c","name":"https://git.kernel.org/stable/c/bebc7db05867fd84349843df5c650054f580044c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/768c6f5fab58cefa65509dd34b946fdd1071746e","name":"https://git.kernel.org/stable/c/768c6f5fab58cefa65509dd34b946fdd1071746e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99996","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99996","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 495e90fa334828d4119061e2726af51d0a0fb4ed bebc7db05867fd84349843df5c650054f580044c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 495e90fa334828d4119061e2726af51d0a0fb4ed 768c6f5fab58cefa65509dd34b946fdd1071746e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ntfs/attrib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bebc7db05867fd84349843df5c650054f580044c","status":"affected","version":"495e90fa334828d4119061e2726af51d0a0fb4ed","versionType":"git"},{"lessThan":"768c6f5fab58cefa65509dd34b946fdd1071746e","status":"affected","version":"495e90fa334828d4119061e2726af51d0a0fb4ed","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs/attrib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.1"},{"lessThan":"7.1","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"7.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: hold the runlist lock while expanding a non-resident attribute\n\nntfs_non_resident_attr_expand() changes ni->runlist.rl while it\nallocates clusters: ntfs_attr_map_whole_runlist(), the compressed\nbranch's ntfs_rl_realloc() and ntfs_runlists_merge() can each kvfree()\nthe old array.  Unless the caller already holds ni->runlist.lock, none\nof this happens under it; only the rollback takes it.  Callers without\nit include the write path, fallocate, ntfs_inode_attr_pwrite() and\nntfs_resident_attr_resize().\n\nThose callers hold mrec_lock, and the write path also inode_lock, but\nthe iomap read side takes neither: FIEMAP, page faults, readahead and\nsplice read reach ntfs_read_iomap_begin_non_resident(), which takes only\nni->runlist.lock.  A FIEMAP running while write(2) extends the same file\ncan walk the array that ntfs_runlists_merge() has just freed:\n\n  BUG: KASAN: slab-use-after-free in ntfs_attr_vcn_to_rl+0x19b/0x200\n\nA reader that finds a vcn unmapped in the stale array also maps it from\ndisk into the runlist the writer is changing, which shows up as \"Run\nlists overlap. Cannot merge!\".\n\nTake ni->runlist.lock for writing around the part of the expansion that\nchanges the runlist and allocated_size, up to and including the mapping\npairs update, as ntfs_non_resident_attr_shrink() does since commit\n91709ba5d6d7 (\"ntfs: protect runlist updates with the runlist lock\"),\nand hold it throughout the rollback, where ntfs_cluster_free() requires\nit.  The lock nests inside mrec_lock, as on the truncate-up path, which\nalready calls this function with the runlist lock held.  Where the\ncaller says it holds the lock (locked_ni == ni), assert that it holds it\nfor writing.\n\nFor an $ATTRIBUTE_LIST whose lock the caller does not hold, drop the\nlock again before the mapping pairs update: that update can resize the\nsame list through ntfs_attrlist_update_locked(), which returns -ENOSPC\nwhen told that the list's lock is held.  Holding it there made punching\nholes into a large fragmented file fail with -ENOSPC."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The trigger is a local write(2) that extends a file on a mounted fs/ntfs volume: ntfs_file_write_iter()->ntfs_expand_for_write()->ntfs_attr_expand()->ntfs_non_resident_attr_expand() swaps ni->runlist.rl without runlist.lock. The racing reader is a local FS_IOC_FIEMAP or page fault into ntfs_read_iomap_begin_non_resident(). No remote protocol carries the input; this is a locking defect on a well-formed volume.\nAC:L - The attacker runs both sides of the race on their own file. One thread repeatedly extends it past allocated_size, so ntfs_runlists_merge() kvfree()s the old array each time. The other loops FIEMAP, so ntfs_attr_vcn_to_rl() walks that array. The race can be retried at will, and NTFS_FS=m is a stock distro config (Debian).\nPR:L - Needs only an ordinary local account with write access to a file on a mounted NTFS volume (for write(2)) and an open fd (for FIEMAP). No capability is checked on either path. fs_type has no FS_USERNS_MOUNT, but no mount by the attacker is needed.\nUI:N - No crafted image or victim action is needed. The race works on any legitimately rw-mounted NTFS volume, using only the attacker's own write and ioctl/mmap calls on a file they can already write.\nS:U - The heap corruption stays inside the host kernel's own security authority. No guest/host, IOMMU or sandbox boundary is crossed.\nC:H - ntfs_attr_vcn_to_rl() reads rl->vcn/length/lcn from a kvfree()d runlist array (KASAN slab-use-after-free). A reclaimed slab can feed an attacker-chosen lcn into iomap->addr, so readahead can read arbitrary clusters on the volume into the attacker's page cache, on top of the kernel UAF read.\nI:H - When the stale array lacks the vcn, the reader calls ntfs_map_runlist_nolock()->ntfs_mapping_pairs_decompress()->ntfs_runlists_merge() on the same ni->runlist the writer is reallocating. Concurrent realloc/kvfree of one array gives a UAF write or double kvfree in kmalloc caches, and corrupts the runlist and the mapping pairs written back to disk.\nA:H - Losing the race gives a KASAN UAF or oops in the runlist walk, a double free, or a corrupted runlist (\"Run lists overlap. Cannot merge!\") that makes later I/O and mapping-pairs updates on the inode fail. It can be repeated at will."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:44:35.366Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bebc7db05867fd84349843df5c650054f580044c"},{"url":"https://git.kernel.org/stable/c/768c6f5fab58cefa65509dd34b946fdd1071746e"}],"title":"ntfs: hold the runlist lock while expanding a non-resident attribute","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99996","datePublished":"2026-11-30T13:18:59.467Z","dateReserved":"2026-09-25T10:25:14.451Z","dateUpdated":"2026-12-01T05:44:35.366Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:42","lastModifiedDate":"2026-12-01 06:17:59","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99996","Ordinal":"1","Title":"ntfs: hold the runlist lock while expanding a non-resident attri","CVE":"CVE-2026-99996","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99996","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: hold the runlist lock while expanding a non-resident attribute\n\nntfs_non_resident_attr_expand() changes ni->runlist.rl while it\nallocates clusters: ntfs_attr_map_whole_runlist(), the compressed\nbranch's ntfs_rl_realloc() and ntfs_runlists_merge() can each kvfree()\nthe old array.  Unless the caller already holds ni->runlist.lock, none\nof this happens under it; only the rollback takes it.  Callers without\nit include the write path, fallocate, ntfs_inode_attr_pwrite() and\nntfs_resident_attr_resize().\n\nThose callers hold mrec_lock, and the write path also inode_lock, but\nthe iomap read side takes neither: FIEMAP, page faults, readahead and\nsplice read reach ntfs_read_iomap_begin_non_resident(), which takes only\nni->runlist.lock.  A FIEMAP running while write(2) extends the same file\ncan walk the array that ntfs_runlists_merge() has just freed:\n\n  BUG: KASAN: slab-use-after-free in ntfs_attr_vcn_to_rl+0x19b/0x200\n\nA reader that finds a vcn unmapped in the stale array also maps it from\ndisk into the runlist the writer is changing, which shows up as \"Run\nlists overlap. Cannot merge!\".\n\nTake ni->runlist.lock for writing around the part of the expansion that\nchanges the runlist and allocated_size, up to and including the mapping\npairs update, as ntfs_non_resident_attr_shrink() does since commit\n91709ba5d6d7 (\"ntfs: protect runlist updates with the runlist lock\"),\nand hold it throughout the rollback, where ntfs_cluster_free() requires\nit.  The lock nests inside mrec_lock, as on the truncate-up path, which\nalready calls this function with the runlist lock held.  Where the\ncaller says it holds the lock (locked_ni == ni), assert that it holds it\nfor writing.\n\nFor an $ATTRIBUTE_LIST whose lock the caller does not hold, drop the\nlock again before the mapping pairs update: that update can resize the\nsame list through ntfs_attrlist_update_locked(), which returns -ENOSPC\nwhen told that the list's lock is held.  Holding it there made punching\nholes into a large fragmented file fail with -ENOSPC.","Type":"Description","Title":"ntfs: hold the runlist lock while expanding a non-resident attri"}]}}}