smb: client: flush dirty data before zeroing a range

Summary

CVECVE-2026-98683
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-18 16:17:21 UTC
Updated2026-10-19 10:19:32 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: smb: client: flush dirty data before zeroing a range smb3_zero_range() emulates FALLOC_FL_ZERO_RANGE by invalidating the page cache over the target range with truncate_pagecache_range() and then issuing FSCTL_SET_ZERO_DATA to the server. Dirty data was only flushed conditionally, when the range reached or extended EOF. For a purely interior zero range that does not reach EOF, no flush happened, so a dirty folio overlapping the range could be written back to the server after the FSCTL and refill the range that was just zeroed with stale data. Fix this by unconditionally flushing and waiting for dirty data in the range before invalidating the page cache and issuing FSCTL_SET_ZERO_DATA, exactly as was done for smb3_punch_hole() in commit d7d2adcd022b ("smb/client: flush dirty data before punching a hole"); the two paths are structurally identical here. This is observed as generic/363 randomly reading stale data where a zeroed range is expected against Windows Server.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 91d1dfae464987aaf6c79ff51d8674880fb3be77 cecf4114069fc19629d284710fd783d56bbca862 git Not specified
CNA Linux Linux affected 91d1dfae464987aaf6c79ff51d8674880fb3be77 e8ba21c7e6ef3d4cb617858760673877b2e4a2bb git Not specified
CNA Linux Linux affected 91d1dfae464987aaf6c79ff51d8674880fb3be77 8f8d32c1044f70e46e87550e039a15ff20a4b21c git Not specified
CNA Linux Linux affected 13af7446428771e9e529284d390e7994df8be683 git Not specified
CNA Linux Linux affected 0a9423f99ded38b32bd1864347332cc557e6b141 git Not specified
CNA Linux Linux affected 7dfa4279c55f467a88e653a5d544817181b22aea git Not specified
CNA Linux Linux affected 6.1.110 6.2 semver Not specified
CNA Linux Linux affected 6.6.51 6.7 semver Not specified
CNA Linux Linux affected 6.10.10 6.11 semver Not specified
CNA Linux Linux affected 6.11 Not specified
CNA Linux Linux unaffected 6.11 semver Not specified
CNA Linux Linux unaffected 6.18.56 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.10 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/e8ba21c7e6ef3d4cb617858760673877b2e4a2bb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8f8d32c1044f70e46e87550e039a15ff20a4b21c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cecf4114069fc19629d284710fd783d56bbca862 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report