AZL-117980: CVE-2026-143032 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
smb: client: don't write back through ODIRECT handles
Writeback uses the first writable handle of the inode, which may have been opened with ODIRECT. Such handles are opened with FILENOINTERMEDIATEBUFFERING, for which Windows rejects any unaligned I/O with STATUSINVALIDPARAMETER. 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:
smb3writeerr: ... 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 ODIRECT, and use one that was only if there is no other.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch smb: client: don't write back through O_DIRECT handles
Event History
Frequently Asked Questions
Under what conditions can data be lost or fail to reach the SMB server?
The issue occurs when client writeback selects a writable SMB handle opened with O_DIRECT (no intermediate buffering) and attempts unaligned writes, including partly dirty pages or an unaligned file tail. Windows rejects those writes with STATUS_INVALID_PARAMETER, after which the affected data may be marked clean locally without reaching the server.
Are all SMB writes through O_DIRECT handles affected?
No. The reported failures were unaligned writes on no-buffering handles. Aligned writes on those handles, and unaligned writes using regular non-O_DIRECT handles, were not reported as failing.
What configuration or workload makes this more likely?
The problem is associated with workloads that mix regular and O_DIRECT opens of the same inode, such as the described fsstress workload. It is most relevant when writeback can choose an O_DIRECT writable handle even though a regular writable handle is also available.
What is the implemented mitigation?
Writeback should prefer a writable handle that was not opened with O_DIRECT. An O_DIRECT handle should be used only when no other writable handle is available.