CVE-2026-143045: smb: client: don't block dying tasks waiting for writeback on fsync
In the Linux kernel, the following vulnerability has been resolved:
smb: client: don't block dying tasks waiting for writeback on fsync
cifsfsync() and cifsstrictfsync() wait uninterruptibly for writeback through filewriteandwaitrange(). As with close, a task killed in fsync(2) on a hard mount with an unresponsive server is stuck in D state until the server comes back.
Wait killably instead, using the same helper as cifsflush(). The writeback keeps going and its errors stay in the mapping; only the dying caller stops waiting for it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Update cifs_fsync() and cifs_strict_fsync() to wait killably for writeback using the same helper as cifs_flush().
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux systems using the SMB/CIFS client are affected when a process calls fsync(2) against a hard-mounted SMB filesystem and the server becomes unresponsive.
What conditions are required for the hang to occur?
An SMB server must be unresponsive while writeback is pending, and a task must call fsync(2) on the affected filesystem. If that task is killed, it can remain stuck in uninterruptible D state until the server responds again.
What is the behavior after the fix?
A dying task can stop waiting for writeback during fsync rather than remaining blocked. Writeback continues, and any writeback errors remain recorded in the file mapping.