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 __smb_send_rqst() checks again, or while waiting for a credit in
cifs_call_async(), 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:
netfs_sreq: R=000041f6[2] UPLD SUBMT ... s=400000 0/400000
smb3_write_err: R=000041f6[2] ... offset=0x400000 len=0x400000 rc=-512
netfs_failure: 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 is_retryable_error() 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 cifs_issue_read() and
__cifs_issue_write().
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 __smb_send_rqst() checks again, or while waiting for a credit in
cifs_call_async(), 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:
netfs_sreq: R=000041f6[2] UPLD SUBMT ... s=400000 0/400000
smb3_write_err: R=000041f6[2] ... offset=0x400000 len=0x400000 rc=-512
netfs_failure: 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 is_retryable_error() 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 cifs_issue_read() and
__cifs_issue_write().
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Thu, 03 Dec 2026 09:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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 __smb_send_rqst() checks again, or while waiting for a credit in cifs_call_async(), 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: netfs_sreq: R=000041f6[2] UPLD SUBMT ... s=400000 0/400000 smb3_write_err: R=000041f6[2] ... offset=0x400000 len=0x400000 rc=-512 netfs_failure: 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 is_retryable_error() 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 cifs_issue_read() and __cifs_issue_write(). | |
| Title | smb: client: retry writeback on interrupts and allocation failures | |
| First Time appeared |
Linux
Linux linux Kernel |
|
| CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Linux
Linux linux Kernel |
|
| References |
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2026-12-03T09:18:14.088Z
Reserved: 2026-12-03T03:10:28.344Z
Link: CVE-2026-143038
No data.
Status : Received
Published: 2026-12-03T10:17:31.930
Modified: 2026-12-03T10:17:31.930
Link: CVE-2026-143038
No data.
OpenCVE Enrichment
No data.
Weaknesses
No weakness.