Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143032

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

Description

In 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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1013e760d10e614dc10b5624ce9fc41563ba2e65 to < 0c17b9275fa515e9a3348fbedfe722f4c8e0fdc9affected
  • 1013e760d10e614dc10b5624ce9fc41563ba2e65 to < 0e85145af984f7cae2aadaa694cb8612009027acaffected
  • 0b35d1a29b76aa077057a0dd5197c230bd9e4e9faffected
  • 64304f5ae2f37d54072b208d53fb692ef941d168affected
  • cfcdf66ca4b73f84009ae944ebd3ae48a5fa63f9affected
  • 3bb7084cc031ff8c1cdbb1c50cbe3e1940eab268affected
  • 18a89a10b26b325da5eb03cbd275f835a4a704f5affected
  • cc6985ec8f095aaa9b1b9f4bee1d292e772ca468affected
  • 3.16.52 to < 3.17affected
  • 3.18.73 to < 3.19affected
  • 4.1.46 to < 4.2affected
  • 4.4.90 to < 4.5affected
  • 4.9.53 to < 4.10affected
  • 4.13.5 to < 4.14affected

Linux Linux

Default version status: affected

  • 4.14affected
  • 0 to < 4.14unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References