{"api_version":"1","generated_at":"2026-12-01T19:16:03+00:00","cve":"CVE-2026-139265","urls":{"html":"https://cve.report/CVE-2026-139265","api":"https://cve.report/api/cve/CVE-2026-139265.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139265","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139265"},"summary":{"title":"ntfs: fix runlist marker allocation and count","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix runlist marker allocation and count\n\nThe marker path can append an unmapped element and an ENOENT\nterminator after the merge helpers have already computed the resulting\nrunlist count. In that case, allocating ds + 2 elements leaves no room\nfor the terminator at ds + 2. The path also increments new_rl_count even\nthough the merge helper already accounted for the final runlist size,\ncausing a later merge to start past the terminator.\n\nAllocate space through ds + 2, and derive new_rl_count from the final\nterminator index instead of incrementing the count a second time.\n\nA crafted NTFS image can reach this path through a normal read after the\nimage has been mounted and trigger out-of-bounds kernel heap accesses.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:49","updated_at":"2026-12-01 06:17:40"},"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:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","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:N/UI:R/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1","name":"https://git.kernel.org/stable/c/c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8d20b7a996ff57c998c7093a0d5b203a477fd0a4","name":"https://git.kernel.org/stable/c/8d20b7a996ff57c998c7093a0d5b203a477fd0a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139265","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139265","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 11ccc9107dc460de28af90fac1f42404d9802735 8d20b7a996ff57c998c7093a0d5b203a477fd0a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 11ccc9107dc460de28af90fac1f42404d9802735 c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1 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.6 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/runlist.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"8d20b7a996ff57c998c7093a0d5b203a477fd0a4","status":"affected","version":"11ccc9107dc460de28af90fac1f42404d9802735","versionType":"git"},{"lessThan":"c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1","status":"affected","version":"11ccc9107dc460de28af90fac1f42404d9802735","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs/runlist.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.6","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.6","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: fix runlist marker allocation and count\n\nThe marker path can append an unmapped element and an ENOENT\nterminator after the merge helpers have already computed the resulting\nrunlist count. In that case, allocating ds + 2 elements leaves no room\nfor the terminator at ds + 2. The path also increments new_rl_count even\nthough the merge helper already accounted for the final runlist size,\ncausing a later merge to start past the terminator.\n\nAllocate space through ds + 2, and derive new_rl_count from the final\nterminator index instead of incrementing the count a second time.\n\nA crafted NTFS image can reach this path through a normal read after the\nimage has been mounted and trigger out-of-bounds kernel heap accesses."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:42:04.642Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/8d20b7a996ff57c998c7093a0d5b203a477fd0a4"},{"url":"https://git.kernel.org/stable/c/c1bd2f1c22c2fa8c5f0f51f82afad23f2dd1bcf1"}],"title":"ntfs: fix runlist marker allocation and count","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139265","datePublished":"2026-11-30T13:33:08.874Z","dateReserved":"2026-11-30T13:22:15.923Z","dateUpdated":"2026-12-01T05:42:04.642Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:49","lastModifiedDate":"2026-12-01 06:17:40","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:N/UI:R/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139265","Ordinal":"1","Title":"ntfs: fix runlist marker allocation and count","CVE":"CVE-2026-139265","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139265","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix runlist marker allocation and count\n\nThe marker path can append an unmapped element and an ENOENT\nterminator after the merge helpers have already computed the resulting\nrunlist count. In that case, allocating ds + 2 elements leaves no room\nfor the terminator at ds + 2. The path also increments new_rl_count even\nthough the merge helper already accounted for the final runlist size,\ncausing a later merge to start past the terminator.\n\nAllocate space through ds + 2, and derive new_rl_count from the final\nterminator index instead of incrementing the count a second time.\n\nA crafted NTFS image can reach this path through a normal read after the\nimage has been mounted and trigger out-of-bounds kernel heap accesses.","Type":"Description","Title":"ntfs: fix runlist marker allocation and count"}]}}}