CVE-2026-143038: smb: client: retry writeback on interrupts and allocation failures
In the Linux kernel, the following vulnerability has been resolved:
smb: client: retry writeback on interrupts and allocation failures
Issuing writes from a worker only helps when the task is already dying at issue time. A fatal signal can still arrive after that check and before smbsendrqst() checks again, or while waiting for a credit in cifscallasync(), or in the middle of a send. The write then fails with -ERESTARTSYS, which isn't a replayable error, so netfs marks the subrequest failed and drops its folios clean:
netfssreq: R=000041f6[2] UPLD SUBMT ... s=400000 0/400000 smb3writeerr: R=000041f6[2] ... offset=0x400000 len=0x400000 rc=-512 netfsfailure: R=000041f6[2] UPLD ... upload e=-512
losing 4MiB of a 64MiB file closed by a task killed meanwhile. A failed memory allocation while building or sending a write drops its data the same way.
No server status maps to an interrupt error or to -ENOMEM, so for writeback such errors always mean the client gave up locally. Mark the subrequest for retry, with backoff and giving up on umount -f, as cifs did with isretryableerror() before switching to netfslib and as NFS does for these errors. netfs collects writeback from a workqueue, so the retry gets prepared and issued with no signals pending.
Only the SMB2 read and write paths sleep before replaying, so SMB1 would resend such writes right away. Move the sleep to cifsissueread() and cifsissuewrite().
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux systems using the SMB client writeback path are affected when write requests are issued through the client. The failure is triggered by a fatal signal arriving during write processing or by local memory allocation failures while building or sending a write.
What is required for data to be lost?
A writeback operation must fail locally with -ERESTARTSYS or -ENOMEM. This can occur while waiting for SMB credits, during a send, or after the worker has checked whether its task is dying; the client then marks the netfs subrequest failed and drops its folios.
Is this caused by an SMB server response?
No. The described interrupt and allocation errors do not correspond to server status values, so they indicate that the client stopped the write locally rather than a server-reported write failure.
How can I look for evidence of impact?
Client logs may show smb3_write_err with rc=-512 followed by netfs_failure reporting an upload error of -512. The described outcome is lost writeback data, such as data from a file closed by a task that was killed while writeback was still pending.