{"id":"CVE-2026-72196","summary":"fs/ntfs3: bound copy_lcns dp-\u003epage_lcns[] index in analysis pass","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: bound copy_lcns dp-\u003epage_lcns[] index in analysis pass\n\nIn log_replay()'s analysis pass, after find_dp() returns a\nvalid DIR_PAGE_ENTRY for the (target_attr, target_vcn) tuple,\nthe copy_lcns block walks lrh-\u003elcns_follow further entries:\n\n\tt16 = le16_to_cpu(lrh-\u003elcns_follow);\n\tfor (i = 0; i \u003c t16; i++) {\n\t    size_t j = (size_t)(le64_to_cpu(lrh-\u003etarget_vcn) -\n\t                        le64_to_cpu(dp-\u003evcn));\n\t    dp-\u003epage_lcns[j + i] = lrh-\u003epage_lcns[i];\n\t}\n\nfind_dp() only validates that target_vcn falls within\n[dp-\u003evcn, dp-\u003evcn + dp-\u003elcns_follow), i.e., that the FIRST\ncluster is covered.  The walk through the further entries is\nnot bounded against dp-\u003elcns_follow.  For a malformed LRH\nwhere target_vcn = dp-\u003evcn + dp-\u003elcns_follow - 1 and\nlrh-\u003elcns_follow \u003e 1, the i \u003e 0 writes overflow the dp's\nallocated page_lcns[] array.\n\nAdd the missing j + lrh-\u003elcns_follow \u003c= dp-\u003elcns_follow guard.\n\nReproduced under UML+KASAN on mainline 8d90b09e6741 as a\nslab-out-of-bounds write of size 8 from log_replay+0x68d4 on\nthe mount path.\n\nThis is distinct from Pavitra Jha's 2026-05-02 patch\n(\"fs/ntfs3: validate lcns_follow in log_replay conversion\",\n\u003c20260502154252.164586-1-jhapavitra98@gmail.com\u003e) which\naddresses the separate version-0 dirty-page-table conversion\npath's memmove(&dp-\u003evcn, ...) call.  The two fixes are\ncomplementary; both should land.\n\n[almaz.alexandrovich@paragon-software.com: clang-formatted the changes,\nfixed conflicts]","modified":"2026-08-18T03:56:38.991843823Z","published":"2026-08-15T05:53:55.509Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72196.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0f13e823bf86bd1800168ea0bb5bca8b8500a81c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/49c86dae0c0ccb8d98ddcdc46987259389c816dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e7b598660cfa8e5af172cf4c65cffc126333307"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b3d8cc9d54fcded4de51b2b1026ae7182512077"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b7c28d8c61bdb041936222a09a708531a1c2921"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d240cd98f5f7b65c90f6b2b6abe3232ccdc405ab"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72196.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72196"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b46acd6a6a627d876898e1c84d3f84902264b445"},{"fixed":"9b3d8cc9d54fcded4de51b2b1026ae7182512077"},{"fixed":"9b7c28d8c61bdb041936222a09a708531a1c2921"},{"fixed":"0f13e823bf86bd1800168ea0bb5bca8b8500a81c"},{"fixed":"d240cd98f5f7b65c90f6b2b6abe3232ccdc405ab"},{"fixed":"49c86dae0c0ccb8d98ddcdc46987259389c816dd"},{"fixed":"5e7b598660cfa8e5af172cf4c65cffc126333307"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72196.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72196.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}