CVE-2026-139265
published high CVSS 3.1 · 7.8ntfs: fix runlist marker allocation and count
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux11ccc9107dc460de28af90fac1f42404d9802735 to < 8d20b7a996ff57c998c7093a0d5b203a477fd0a4 · 11ccc9107dc460de28af90fac1f42404d9802735 to < c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.3.6 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: fix runlist marker allocation and count The marker path can append an unmapped element and an ENOENT terminator after the merge helpers have already computed the resulting runlist count. In that case, allocating ds + 2 elements leaves no room for the terminator at ds + 2. The path also increments new_rl_count even though the merge helper already accounted for the final runlist size, causing a later merge to start past the terminator. Allocate space through ds + 2, and derive new_rl_count from the final terminator index instead of incrementing the count a second time. A crafted NTFS image can reach this path through a normal read after the image has been mounted and trigger out-of-bounds kernel heap accesses.
Related advisories
Vendor advisories explicitly linked to this CVE.
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:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The malformed input is a crafted NTFS image's attribute-list extents and mapping pairs (lowest_vcn/highest_vcn, run lengths). read() reaches ntfs_runlists_merge() via ntfs_read_iomap_begin_non_resident() -> ntfs_attr_vcn_to_rl() -> ntfs_map_runlist_nolock() -> ntfs_mapping_pairs_decompress(). The bytes come off local block media, not a network protocol. AC:L - The image author picks the extent layout, so the marker path runs deterministically on an ordinary read of the file. The author also chooses the runlist size, which picks the slab bucket: at 4 or 8 elements the kvzalloc((ds+2)*24) buffer exactly fills kmalloc-96/192, so the extra element lands in the next object. No race or uncontrollable state is needed; heap grooming is ordinary attacker work. PR:N - Triggering needs no account on the target beyond getting the image mounted. ntfs_fs_type is FS_REQUIRES_DEV|FS_ALLOW_IDMAP with no FS_USERNS_MOUNT, so an unprivileged user cannot mount it via user namespaces. The privileged mount is the victim's action and is scored under UI:R rather than PR. UI:R - A victim or automounter must mount the attacker-supplied NTFS image (read-only is enough) and something must read the crafted multi-extent attribute; that mount is the required user interaction. S:U - The corruption stays inside the kernel's own heap and the mounting host's security authority; no guest/host, IOMMU or sandbox boundary is crossed. C:H - Pre-fix ntfs_runlists_merge() adds 2 or 1 to *new_rl_count after the merge helper already set it, so ni->runlist.count overstates the array. Later __ntfs_attr_find_vcn_nolock() reads rl[count-2] and ntfs_rl_realloc() memcpy()s count*24 bytes past the allocation, an unbounded heap OOB read whose data is then used as runlist elements. I:H - The marker branch does ntfs_rl_realloc_nofail(drl, ds, ds + 2), then writes the ENOENT terminator at drl[ds+2], a 24-byte heap overflow whose leading vcn (marker_vcn) comes from the image. The inflated count also makes later merges' ntfs_rl_mm()/ntfs_rl_mc() move elements beyond the buffer. Both are OOB heap writes usable for corrupting adjacent objects. A:H - The overflow into the next slab object and the out-of-bounds runlist walks from the inflated count corrupt kernel heap metadata or neighbouring objects, giving a KASAN report or an oops/panic when the corrupted object or runlist is next used.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 11ccc9107dc460de28af90fac1f42404d9802735 to < 8d20b7a996ff57c998c7093a0d5b203a477fd0a4 (affected · git)11ccc9107dc460de28af90fac1f42404d9802735 to < c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
ntfs: fix runlist marker allocation and count
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b523a6bb894a525eeeda294f71a95f851130c29e530243da3b36248293cbf873
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record