Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99996

published high CVSS 3.1 · 7.8

ntfs: hold the runlist lock while expanding a non-resident attribute

Published
30 Nov 2026, 13:18:59 UTC
Updated
01 Dec 2026, 05:44:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux495e90fa334828d4119061e2726af51d0a0fb4ed to < bebc7db05867fd84349843df5c650054f580044c · 495e90fa334828d4119061e2726af51d0a0fb4ed to < 768c6f5fab58cefa65509dd34b946fdd1071746e · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: ntfs: hold the runlist lock while expanding a non-resident attribute ntfs_non_resident_attr_expand() changes ni->runlist.rl while it allocates clusters: ntfs_attr_map_whole_runlist(), the compressed branch's ntfs_rl_realloc() and ntfs_runlists_merge() can each kvfree() the old array. Unless the caller already holds ni->runlist.lock, none of this happens under it; only the rollback takes it. Callers without it include the write path, fallocate, ntfs_inode_attr_pwrite() and ntfs_resident_attr_resize(). Those callers hold mrec_lock, and the write path also inode_lock, but the iomap read side takes neither: FIEMAP, page faults, readahead and splice read reach ntfs_read_iomap_begin_non_resident(), which takes only ni->runlist.lock. A FIEMAP running while write(2) extends the same file can walk the array that ntfs_runlists_merge() has just freed: BUG: KASAN: slab-use-after-free in ntfs_attr_vcn_to_rl+0x19b/0x200 A reader that finds a vcn unmapped in the stale array also maps it from disk into the runlist the writer is changing, which shows up as "Run lists overlap. Cannot merge!". Take ni->runlist.lock for writing around the part of the expansion that changes the runlist and allocated_size, up to and including the mapping pairs update, as ntfs_non_resident_attr_shrink() does since commit 91709ba5d6d7 ("ntfs: protect runlist updates with the runlist lock"), and hold it throughout the rollback, where ntfs_cluster_free() requires it. The lock nests inside mrec_lock, as on the truncate-up path, which already calls this function with the runlist lock held. Where the caller says it holds the lock (locked_ni == ni), assert that it holds it for writing. For an $ATTRIBUTE_LIST whose lock the caller does not hold, drop the lock again before the mapping pairs update: that update can resize the same list through ntfs_attrlist_update_locked(), which returns -ENOSPC when told that the list's lock is held. Holding it there made punching holes into a large fragmented file fail with -ENOSPC.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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). PR: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. UI: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. S:U - The heap corruption stays inside the host kernel's own security authority. No guest/host, IOMMU or sandbox boundary is crossed. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 495e90fa334828d4119061e2726af51d0a0fb4ed to < bebc7db05867fd84349843df5c650054f580044c (affected · git)495e90fa334828d4119061e2726af51d0a0fb4ed to < 768c6f5fab58cefa65509dd34b946fdd1071746e (affected · git)Default: unaffected Linux · cna
Linux Linux 7.1 (affected)0 to < 7.1 (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

ntfs: hold the runlist lock while expanding a non-resident attribute

Provenance

Schema
5.2
Searchable
yes
Content hash
b6fe1d44186f73083ee54d6dc0dd516df914c1b768d14db91410b3122e881641
Ingested
01 Dec 2026, 05:47:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected