{"id":"CVE-2026-143032","state":"PUBLISHED","title":"smb: client: don't write back through O_DIRECT handles","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: don't write back through O_DIRECT handles\n\nWriteback uses the first writable handle of the inode, which may have\nbeen opened with O_DIRECT.  Such handles are opened with\nFILE_NO_INTERMEDIATE_BUFFERING, for which Windows rejects any unaligned\nI/O with STATUS_INVALID_PARAMETER.  Writeback of partly dirty pages and\nof the unaligned tail of a file through one of them fails, so netfs ends\nit with the folios clean and the data never reaches the server.\n\nxfstests generic/051, where fsstress mixes both kinds of opens, loses\nabout 1% of its writes this way:\n\n  smb3_write_err: ... offset=0xde90d7 len=0xbd0b rc=-22\n\nAll the rejected writes in a network capture were unaligned writes on a\nno-buffering handle; none of the aligned ones, and none of the unaligned\nones on regular handles, were.\n\nPrefer a handle that was not opened with O_DIRECT, and use one that was\nonly if there is no other.","publishedAt":"2026-12-03T09:18:07.712Z","updatedAt":"2026-12-03T09:18:07.712Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1013e760d10e614dc10b5624ce9fc41563ba2e65","status":"affected","lessThan":"0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9","versionType":"git"},{"version":"1013e760d10e614dc10b5624ce9fc41563ba2e65","status":"affected","lessThan":"0e85145af984f7cae2aadaa694cb8612009027ac","versionType":"git"},{"version":"0b35d1a29b76aa077057a0dd5197c230bd9e4e9f","status":"affected","versionType":"git"},{"version":"64304f5ae2f37d54072b208d53fb692ef941d168","status":"affected","versionType":"git"},{"version":"cfcdf66ca4b73f84009ae944ebd3ae48a5fa63f9","status":"affected","versionType":"git"},{"version":"3bb7084cc031ff8c1cdbb1c50cbe3e1940eab268","status":"affected","versionType":"git"},{"version":"18a89a10b26b325da5eb03cbd275f835a4a704f5","status":"affected","versionType":"git"},{"version":"cc6985ec8f095aaa9b1b9f4bee1d292e772ca468","status":"affected","versionType":"git"},{"version":"3.16.52","status":"affected","lessThan":"3.17","versionType":"semver"},{"version":"3.18.73","status":"affected","lessThan":"3.19","versionType":"semver"},{"version":"4.1.46","status":"affected","lessThan":"4.2","versionType":"semver"},{"version":"4.4.90","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.53","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.13.5","status":"affected","lessThan":"4.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsglob.h","fs/smb/client/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/cifsglob.h","fs/smb/client/file.c"]}],"references":["https://git.kernel.org/stable/c/0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9","https://git.kernel.org/stable/c/0e85145af984f7cae2aadaa694cb8612009027ac"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143032.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143032","state":"PUBLISHED","datePublished":"2026-12-03T09:18:07.712Z","dateUpdated":"2026-12-03T09:18:07.712Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.344Z"},"containers":{"cna":{"title":"smb: client: don't write back through O_DIRECT handles","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: don't write back through O_DIRECT handles\n\nWriteback uses the first writable handle of the inode, which may have\nbeen opened with O_DIRECT.  Such handles are opened with\nFILE_NO_INTERMEDIATE_BUFFERING, for which Windows rejects any unaligned\nI/O with STATUS_INVALID_PARAMETER.  Writeback of partly dirty pages and\nof the unaligned tail of a file through one of them fails, so netfs ends\nit with the folios clean and the data never reaches the server.\n\nxfstests generic/051, where fsstress mixes both kinds of opens, loses\nabout 1% of its writes this way:\n\n  smb3_write_err: ... offset=0xde90d7 len=0xbd0b rc=-22\n\nAll the rejected writes in a network capture were unaligned writes on a\nno-buffering handle; none of the aligned ones, and none of the unaligned\nones on regular handles, were.\n\nPrefer a handle that was not opened with O_DIRECT, and use one that was\nonly if there is no other."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1013e760d10e614dc10b5624ce9fc41563ba2e65","status":"affected","lessThan":"0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9","versionType":"git"},{"version":"1013e760d10e614dc10b5624ce9fc41563ba2e65","status":"affected","lessThan":"0e85145af984f7cae2aadaa694cb8612009027ac","versionType":"git"},{"version":"0b35d1a29b76aa077057a0dd5197c230bd9e4e9f","status":"affected","versionType":"git"},{"version":"64304f5ae2f37d54072b208d53fb692ef941d168","status":"affected","versionType":"git"},{"version":"cfcdf66ca4b73f84009ae944ebd3ae48a5fa63f9","status":"affected","versionType":"git"},{"version":"3bb7084cc031ff8c1cdbb1c50cbe3e1940eab268","status":"affected","versionType":"git"},{"version":"18a89a10b26b325da5eb03cbd275f835a4a704f5","status":"affected","versionType":"git"},{"version":"cc6985ec8f095aaa9b1b9f4bee1d292e772ca468","status":"affected","versionType":"git"},{"version":"3.16.52","status":"affected","lessThan":"3.17","versionType":"semver"},{"version":"3.18.73","status":"affected","lessThan":"3.19","versionType":"semver"},{"version":"4.1.46","status":"affected","lessThan":"4.2","versionType":"semver"},{"version":"4.4.90","status":"affected","lessThan":"4.5","versionType":"semver"},{"version":"4.9.53","status":"affected","lessThan":"4.10","versionType":"semver"},{"version":"4.13.5","status":"affected","lessThan":"4.14","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsglob.h","fs/smb/client/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/cifsglob.h","fs/smb/client/file.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9"},{"url":"https://git.kernel.org/stable/c/0e85145af984f7cae2aadaa694cb8612009027ac"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:07.712Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18.73"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4.90"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}