CVE-2026-143040: smb: client: issue writes from a worker if the task is dying

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: client: issue writes from a worker if the task is dying

A task with a fatal signal pending can't send on the socket: smbsendrqst() refuses it upfront with -ERESTARTSYS, as SIGKILL can't be blocked and a send interrupted halfway forces a reconnect. Writeback, however, runs in the context of whoever starts it, so when a dying task flushes dirty pages - close() racing with SIGKILL, or fd teardown during exitgroup() - every write subrequest gets refused:

smb3writeerr: ... offset=0x1400000 len=0x400000 rc=-512 cifsflusherr: ino=... rc=-512

Since the switch to netfslib, a failed upload ends writeback with the folios clean, so the data is silently lost: the server ends up with 20MiB of a 64MiB file while stat(2) reports the full size.

Issue writeback subrequests of dying tasks from a new cifswritebackd workqueue instead, like afs does for all of its writes, so they get sent from a context with no signals. Leave direct and unbuffered writes alone, as their callers get the error. Use a dedicated WQUNBOUND workqueue as the writes may block for long on credits, sends or reopens, e.g. on hard mounts with an unresponsive server, and must not hold up other cifs work such as reconnects, nor starve the WQMEMRECLAIM rescuer of cifsiodwq.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·09:18 AM
Data Sourced
via MITRE·09:18 AM
Description

Frequently Asked Questions

1

Which workloads are exposed to this issue?

Linux systems acting as SMB clients are exposed when buffered SMB writeback is initiated by a task that has a fatal signal pending, such as close() racing with SIGKILL or file-descriptor teardown during exit_group().

2

Are direct or unbuffered SMB writes affected?

No. Direct and unbuffered writes are left unchanged because their callers receive the error rather than relying on background writeback.

3

How can I identify possible data loss from this condition?

Look for SMB client writeback errors with rc=-512, including smb3_write_err and cifs_flush_err messages. Affected files may report their expected size through stat(2) while the server contains less data than expected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203