cvelo
P4 · InfoEPSS 0.3%

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

  • CVE-2026-143032
  • GHSA-vvxg-7585-q9w4
  • EUVD-2026-142649

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 4.9.53 to before 4.10update to 4.10 or laterMinor version change: check the release notes
    • If you run a version from 4.4.90 to before 4.5update to 4.5 or laterMinor version change: check the release notes
    • If you run a version from 4.1.46 to before 4.2update to 4.2 or laterMinor version change: check the release notes
    • If you run a version from 3.18.73 to before 3.19update to 3.19 or laterMinor version change: check the release notes
    • If you run a version from 3.16.52 to before 3.17update to 3.17 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 4.9.53 to before 4.104.10
    from 4.4.90 to before 4.54.5
    from 4.1.46 to before 4.24.2
    from 3.18.73 to before 3.193.19
    from 3.16.52 to before 3.173.17
    from 4.13.5 to before 4.14none stated
    4.14none stated
    before 4.14: not affectednone stated

    and 2 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.