{"id":"CVE-2026-98685","state":"PUBLISHED","title":"smb: client: discard post-EOF pagecache when extending a file via clone range","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: discard post-EOF pagecache when extending a file via clone range\n\ncifs_remap_file_range() discarded the pagecache only for the folios\noverlapping the destination region, so when a clone extends the file the\nfolio straddling the old EOF - which may hold data dirtied past EOF\nthrough an mmap - was never dropped and became visible as file content\nonce the file was extended.\n\nStart the discard at the smaller of fstart and the old EOF.  i_size is\nstill old here, so nothing past the old EOF is flushed to the server.","publishedAt":"2026-10-18T15:45:53.821Z","updatedAt":"2026-10-19T09:23:55.472Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c54fc3a4f375663f2361a9cbb2955fb4ef912879","status":"affected","lessThan":"15bb9f1d3e967e328649e92a1451e60a0dc66118","versionType":"git"},{"version":"c54fc3a4f375663f2361a9cbb2955fb4ef912879","status":"affected","lessThan":"4721587f96cb8de8164f3fd203093a0875560999","versionType":"git"},{"version":"358bd5f436d820bb758833050aae065b35d6986c","status":"affected","versionType":"git"},{"version":"43801359c8971cc49b4a4db5015fba77fbd09c32","status":"affected","versionType":"git"},{"version":"6.1.68","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.7","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"7.2.10","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/smb/client/cifsfs.c"]}],"references":["https://git.kernel.org/stable/c/15bb9f1d3e967e328649e92a1451e60a0dc66118","https://git.kernel.org/stable/c/4721587f96cb8de8164f3fd203093a0875560999"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98685.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98685","state":"PUBLISHED","datePublished":"2026-10-18T15:45:53.821Z","dateUpdated":"2026-10-19T09:23:55.472Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.364Z"},"containers":{"cna":{"title":"smb: client: discard post-EOF pagecache when extending a file via clone range","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: discard post-EOF pagecache when extending a file via clone range\n\ncifs_remap_file_range() discarded the pagecache only for the folios\noverlapping the destination region, so when a clone extends the file the\nfolio straddling the old EOF - which may hold data dirtied past EOF\nthrough an mmap - was never dropped and became visible as file content\nonce the file was extended.\n\nStart the discard at the smaller of fstart and the old EOF.  i_size is\nstill old here, so nothing past the old EOF is flushed to the server."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c54fc3a4f375663f2361a9cbb2955fb4ef912879","status":"affected","lessThan":"15bb9f1d3e967e328649e92a1451e60a0dc66118","versionType":"git"},{"version":"c54fc3a4f375663f2361a9cbb2955fb4ef912879","status":"affected","lessThan":"4721587f96cb8de8164f3fd203093a0875560999","versionType":"git"},{"version":"358bd5f436d820bb758833050aae065b35d6986c","status":"affected","versionType":"git"},{"version":"43801359c8971cc49b4a4db5015fba77fbd09c32","status":"affected","versionType":"git"},{"version":"6.1.68","status":"affected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.7","status":"affected","lessThan":"6.7","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"7.2.10","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/smb/client/cifsfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/15bb9f1d3e967e328649e92a1451e60a0dc66118"},{"url":"https://git.kernel.org/stable/c/4721587f96cb8de8164f3fd203093a0875560999"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:23:55.472Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.2.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}