smb: client: don't write back through O_DIRECT handles

Summary

CVECVE-2026-143032
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:17:31 UTC
Updated2026-12-03 10:17:31 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: smb: client: don't write back through O_DIRECT handles Writeback uses the first writable handle of the inode, which may have been opened with O_DIRECT. Such handles are opened with FILE_NO_INTERMEDIATE_BUFFERING, for which Windows rejects any unaligned I/O with STATUS_INVALID_PARAMETER. Writeback of partly dirty pages and of the unaligned tail of a file through one of them fails, so netfs ends it with the folios clean and the data never reaches the server. xfstests generic/051, where fsstress mixes both kinds of opens, loses about 1% of its writes this way: smb3_write_err: ... offset=0xde90d7 len=0xbd0b rc=-22 All the rejected writes in a network capture were unaligned writes on a no-buffering handle; none of the aligned ones, and none of the unaligned ones on regular handles, were. Prefer a handle that was not opened with O_DIRECT, and use one that was only if there is no other.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 1013e760d10e614dc10b5624ce9fc41563ba2e65 0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9 git Not specified
CNA Linux Linux affected 1013e760d10e614dc10b5624ce9fc41563ba2e65 0e85145af984f7cae2aadaa694cb8612009027ac git Not specified
CNA Linux Linux affected 0b35d1a29b76aa077057a0dd5197c230bd9e4e9f git Not specified
CNA Linux Linux affected 64304f5ae2f37d54072b208d53fb692ef941d168 git Not specified
CNA Linux Linux affected cfcdf66ca4b73f84009ae944ebd3ae48a5fa63f9 git Not specified
CNA Linux Linux affected 3bb7084cc031ff8c1cdbb1c50cbe3e1940eab268 git Not specified
CNA Linux Linux affected 18a89a10b26b325da5eb03cbd275f835a4a704f5 git Not specified
CNA Linux Linux affected cc6985ec8f095aaa9b1b9f4bee1d292e772ca468 git Not specified
CNA Linux Linux affected 3.16.52 3.17 semver Not specified
CNA Linux Linux affected 3.18.73 3.19 semver Not specified
CNA Linux Linux affected 4.1.46 4.2 semver Not specified
CNA Linux Linux affected 4.4.90 4.5 semver Not specified
CNA Linux Linux affected 4.9.53 4.10 semver Not specified
CNA Linux Linux affected 4.13.5 4.14 semver Not specified
CNA Linux Linux affected 4.14 Not specified
CNA Linux Linux unaffected 4.14 semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/0e85145af984f7cae2aadaa694cb8612009027ac 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9 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