{"id":"CVE-2026-139261","state":"PUBLISHED","title":"ntfs: do not give a contiguous cluster allocation a second run","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: do not give a contiguous cluster allocation a second run\n\nntfs_attr_map_cluster() asks ntfs_cluster_alloc() for contiguous\nclusters and merges the whole result into the runlist, but reports only\nits first run, so its callers zero only that run.  Within a bitmap page\nthe allocator keeps such a request to one run, because a cluster in use\nends it.  The zone search can also move on without testing the clusters\nafter the run, though: it skips a bitmap page that has no free clusters,\nit goes from the end of the zone to the start of pass 2, and once every\nzone has been searched it shrinks the MFT zone by half and goes on at\nits new end.  After each of these jumps the first cluster tested is\nstill taken as the next one of the run, and if it is free it starts a\nsecond run elsewhere on the volume.\n\nfallocate() over a hole then leaves the clusters of that second run\nholding whatever they held before: on a nearly full volume, 16 of 20\nfallocated clusters read back a deleted file's data, in each of the\nthree cases.\n\nDelayed allocation gets a second run without punching any holes: filling\nthe same volume with write() reaches the last case when the MFT zone is\nshrunk.  The allocator then takes only the first run off the\ndirty-cluster count, and after the fill statfs() reported no free space\nwhile 939 clusters were still free, until the next mount.\n\nBefore setting the bit of a cluster for a contiguous request, check that\nthe cluster comes right after the run, and return the run as it is if\nnot; no bit has to be cleared.  ntfs_attr_map_cluster() already handles\na short run, which a cluster in use produces in the same way: its\ncallers ask again for the rest.","publishedAt":"2026-11-30T13:33:06.635Z","updatedAt":"2026-11-30T13:33:06.635Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11ccc9107dc460de28af90fac1f42404d9802735","status":"affected","lessThan":"faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc","versionType":"git"},{"version":"11ccc9107dc460de28af90fac1f42404d9802735","status":"affected","lessThan":"b05a67615b982cfaa903df8a6fb055d18ebafe11","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/lcnalloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/lcnalloc.c"]}],"references":["https://git.kernel.org/stable/c/faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc","https://git.kernel.org/stable/c/b05a67615b982cfaa903df8a6fb055d18ebafe11"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139261.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139261","state":"PUBLISHED","datePublished":"2026-11-30T13:33:06.635Z","dateUpdated":"2026-11-30T13:33:06.635Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.923Z"},"containers":{"cna":{"title":"ntfs: do not give a contiguous cluster allocation a second run","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: do not give a contiguous cluster allocation a second run\n\nntfs_attr_map_cluster() asks ntfs_cluster_alloc() for contiguous\nclusters and merges the whole result into the runlist, but reports only\nits first run, so its callers zero only that run.  Within a bitmap page\nthe allocator keeps such a request to one run, because a cluster in use\nends it.  The zone search can also move on without testing the clusters\nafter the run, though: it skips a bitmap page that has no free clusters,\nit goes from the end of the zone to the start of pass 2, and once every\nzone has been searched it shrinks the MFT zone by half and goes on at\nits new end.  After each of these jumps the first cluster tested is\nstill taken as the next one of the run, and if it is free it starts a\nsecond run elsewhere on the volume.\n\nfallocate() over a hole then leaves the clusters of that second run\nholding whatever they held before: on a nearly full volume, 16 of 20\nfallocated clusters read back a deleted file's data, in each of the\nthree cases.\n\nDelayed allocation gets a second run without punching any holes: filling\nthe same volume with write() reaches the last case when the MFT zone is\nshrunk.  The allocator then takes only the first run off the\ndirty-cluster count, and after the fill statfs() reported no free space\nwhile 939 clusters were still free, until the next mount.\n\nBefore setting the bit of a cluster for a contiguous request, check that\nthe cluster comes right after the run, and return the run as it is if\nnot; no bit has to be cleared.  ntfs_attr_map_cluster() already handles\na short run, which a cluster in use produces in the same way: its\ncallers ask again for the rest."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11ccc9107dc460de28af90fac1f42404d9802735","status":"affected","lessThan":"faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc","versionType":"git"},{"version":"11ccc9107dc460de28af90fac1f42404d9802735","status":"affected","lessThan":"b05a67615b982cfaa903df8a6fb055d18ebafe11","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/lcnalloc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs/lcnalloc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc"},{"url":"https://git.kernel.org/stable/c/b05a67615b982cfaa903df8a6fb055d18ebafe11"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:06.635Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}