{"id":"CVE-2026-89617","state":"PUBLISHED","title":"fs/ntfs3: validate dirty page table on log replay","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: validate dirty page table on log replay\n\nEach DIR_PAGE_ENTRY ends in a page_lcns[] array whose length is the on-disk\nlcns_follow field. check_rstbl() validates the table bookkeeping but never\nchecks that this array fits in the entry, so a crafted lcns_follow lets the\nv0->v1 conversion memmove and later replay passes run off the entry.\n\nAdd check_dp_table() to reject, right after check_rstbl(), any entry larger\nthan its size claims via struct_size() (the same expression used to allocate\nthese entries, so the check is overflow-safe by construction). All consumers\ncan then trust lcns_follow as the real capacity. This covers every\npage_lcns[] access whose index is bounded by the entry itself (the\nconversion memmove, the HotFix store via find_dp(), and the self-bounded\nscan loops). Accesses whose index comes from the log record need a separate\nbound and are handled in a follow-up patch.","publishedAt":"2026-09-11T19:45:16.737Z","updatedAt":"2026-10-19T08:49:49.792Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"0e07ea2fc45a7b4757ef7bf1f692cc0180a08323","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"1e90b1703ee1a04cd3e9e399353fc536f5f3ba10","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"d23155634a4bc1183e761d5eb2c043b2e693cc98","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"1200c2779c43b62656ccbb67df9468a7a9af2484","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"0908da07c23be4f94b99dfd9a94765525f0fe4bd","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"006cb7713dec10368e699abc4367e5faa334c9a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/fslog.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/fslog.c"]}],"references":["https://git.kernel.org/stable/c/0e07ea2fc45a7b4757ef7bf1f692cc0180a08323","https://git.kernel.org/stable/c/1e90b1703ee1a04cd3e9e399353fc536f5f3ba10","https://git.kernel.org/stable/c/d23155634a4bc1183e761d5eb2c043b2e693cc98","https://git.kernel.org/stable/c/1200c2779c43b62656ccbb67df9468a7a9af2484","https://git.kernel.org/stable/c/2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56","https://git.kernel.org/stable/c/0908da07c23be4f94b99dfd9a94765525f0fe4bd","https://git.kernel.org/stable/c/006cb7713dec10368e699abc4367e5faa334c9a5"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89617.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89617","state":"PUBLISHED","datePublished":"2026-09-11T19:45:16.737Z","dateUpdated":"2026-10-19T08:49:49.792Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.735Z"},"containers":{"cna":{"title":"fs/ntfs3: validate dirty page table on log replay","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: validate dirty page table on log replay\n\nEach DIR_PAGE_ENTRY ends in a page_lcns[] array whose length is the on-disk\nlcns_follow field. check_rstbl() validates the table bookkeeping but never\nchecks that this array fits in the entry, so a crafted lcns_follow lets the\nv0->v1 conversion memmove and later replay passes run off the entry.\n\nAdd check_dp_table() to reject, right after check_rstbl(), any entry larger\nthan its size claims via struct_size() (the same expression used to allocate\nthese entries, so the check is overflow-safe by construction). All consumers\ncan then trust lcns_follow as the real capacity. This covers every\npage_lcns[] access whose index is bounded by the entry itself (the\nconversion memmove, the HotFix store via find_dp(), and the self-bounded\nscan loops). Accesses whose index comes from the log record need a separate\nbound and are handled in a follow-up patch."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"0e07ea2fc45a7b4757ef7bf1f692cc0180a08323","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"1e90b1703ee1a04cd3e9e399353fc536f5f3ba10","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"d23155634a4bc1183e761d5eb2c043b2e693cc98","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"1200c2779c43b62656ccbb67df9468a7a9af2484","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"0908da07c23be4f94b99dfd9a94765525f0fe4bd","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","status":"affected","lessThan":"006cb7713dec10368e699abc4367e5faa334c9a5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/fslog.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.50","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.4","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/fslog.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0e07ea2fc45a7b4757ef7bf1f692cc0180a08323"},{"url":"https://git.kernel.org/stable/c/1e90b1703ee1a04cd3e9e399353fc536f5f3ba10"},{"url":"https://git.kernel.org/stable/c/d23155634a4bc1183e761d5eb2c043b2e693cc98"},{"url":"https://git.kernel.org/stable/c/1200c2779c43b62656ccbb67df9468a7a9af2484"},{"url":"https://git.kernel.org/stable/c/2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56"},{"url":"https://git.kernel.org/stable/c/0908da07c23be4f94b99dfd9a94765525f0fe4bd"},{"url":"https://git.kernel.org/stable/c/006cb7713dec10368e699abc4367e5faa334c9a5"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"AV:L - log_replay() is reached only from ntfs_fill_super via ntfs_loadlog_and_replay while mounting a local NTFS block device; the dirty-page table is parsed from on-disk $LogFile, not from ksmbd, nfsd, or any received-packet path.\nAC:L - The attacker fully controls DIR_PAGE_ENTRY.lcns_follow and the restart table in a crafted $LogFile, so a value larger than the entry size reliably drives the v0 conversion memmove, HotFix store, and lcns_follow-bounded scan loops off the entry with no race or uncontrollable layout.\nPR:L - Triggering log replay requires mounting the malicious NTFS image (CAP_SYS_ADMIN). Unprivileged users can cause that mount via user+mount namespaces, loop-backed images, or common desktop/Android helpers (udisks/gvfs/USB automount) without init-namespace root.\nUI:N - No separate victim action is required: the attacker mounts their own crafted NTFS image (or causes automount of media they supply) and log replay runs automatically in ntfs_fill_super before any further file access.\nS:U - Corruption is confined to kernel heap during NTFS journal replay in the same kernel security authority; it is a local privilege-escalation/memory-safety issue, not a VM, IOMMU, or sandbox escape.\nC:H - Crafted lcns_follow makes DeleteDirtyClusters, HotFix, and dirty-page scan loops read page_lcns[] far past the kmemdup'd DIR_PAGE_ENTRY, disclosing adjacent kernel heap; that OOB read plus heap corruption yields arbitrary disclosure primitives.\nI:H - HotFix writes attacker-controlled LCNs and DeleteDirtyClusters zeros page_lcns[j] for j < the forged lcns_follow, overflowing the restart-table heap object into neighboring kmalloc data and enabling arbitrary kernel writes or control-flow hijack.\nA:H - Out-of-bounds heap access during mount-time log replay corrupts slab metadata or adjacent objects, causing kernel oops/panic, and a huge lcns_follow can also hang the mount path in a multi-billion-iteration scan."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:49:49.792Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.2.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}