{"id":"CVE-2026-98686","state":"PUBLISHED","title":"smb: client: discard post-EOF pagecache when extending a file via zero range","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: discard post-EOF pagecache when extending a file via zero range\n\nsmb3_zero_range() removed the pagecache only for the range being zeroed,\nso when it extends the file the folio straddling the old EOF - which may\nhold data dirtied past EOF through an mmap - was never dropped and became\nvisible as file content once the file was extended.\n\nLower the discard boundary to the smaller of the zero-range offset and the\nold EOF.","publishedAt":"2026-10-18T15:45:55.193Z","updatedAt":"2026-10-30T12:38:44.094Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"1ecf89d8efca618e0c758c06b9a1fdde8bd941da","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"03408d15c5405f8dc3e1a114cdce2174027a85f6","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"3df27277f8f95345d4a6c57367824bf1aefdbf66","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"94949b6b2f2bf0dba2e8786aed0b08cc6bc3a183","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"b75dadb50a25eed525264bf6fea44fad94e7626f","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"6a8279c98ad289b27c0bdb11adb3f0c0b7fd456d","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.113","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","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/smb2ops.c"]}],"references":["https://git.kernel.org/stable/c/1ecf89d8efca618e0c758c06b9a1fdde8bd941da","https://git.kernel.org/stable/c/03408d15c5405f8dc3e1a114cdce2174027a85f6","https://git.kernel.org/stable/c/3df27277f8f95345d4a6c57367824bf1aefdbf66","https://git.kernel.org/stable/c/94949b6b2f2bf0dba2e8786aed0b08cc6bc3a183","https://git.kernel.org/stable/c/b75dadb50a25eed525264bf6fea44fad94e7626f","https://git.kernel.org/stable/c/6a8279c98ad289b27c0bdb11adb3f0c0b7fd456d","https://git.kernel.org/stable/c/da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0"],"weaknesses":[],"ingestedAt":"2026-10-30T12:58:04.520Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98686.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98686","state":"PUBLISHED","datePublished":"2026-10-18T15:45:55.193Z","dateUpdated":"2026-10-30T12:38:44.094Z","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 zero 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 zero range\n\nsmb3_zero_range() removed the pagecache only for the range being zeroed,\nso when it extends the file the folio straddling the old EOF - which may\nhold data dirtied past EOF through an mmap - was never dropped and became\nvisible as file content once the file was extended.\n\nLower the discard boundary to the smaller of the zero-range offset and the\nold EOF."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"1ecf89d8efca618e0c758c06b9a1fdde8bd941da","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"03408d15c5405f8dc3e1a114cdce2174027a85f6","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"3df27277f8f95345d4a6c57367824bf1aefdbf66","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"94949b6b2f2bf0dba2e8786aed0b08cc6bc3a183","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"b75dadb50a25eed525264bf6fea44fad94e7626f","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"6a8279c98ad289b27c0bdb11adb3f0c0b7fd456d","versionType":"git"},{"version":"72c419d9b073628d3b5b0b2fc787b724f1a8c726","status":"affected","lessThan":"da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"5.15.224","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.113","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","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/smb2ops.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1ecf89d8efca618e0c758c06b9a1fdde8bd941da"},{"url":"https://git.kernel.org/stable/c/03408d15c5405f8dc3e1a114cdce2174027a85f6"},{"url":"https://git.kernel.org/stable/c/3df27277f8f95345d4a6c57367824bf1aefdbf66"},{"url":"https://git.kernel.org/stable/c/94949b6b2f2bf0dba2e8786aed0b08cc6bc3a183"},{"url":"https://git.kernel.org/stable/c/b75dadb50a25eed525264bf6fea44fad94e7626f"},{"url":"https://git.kernel.org/stable/c/6a8279c98ad289b27c0bdb11adb3f0c0b7fd456d"},{"url":"https://git.kernel.org/stable/c/da4fe97fb6c730d9c94a115c7bfa6f98e0d578d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:38:44.094Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"5.15.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.12.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.18.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.2.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}