CVE-2026-143039: smb: client: let umount -f abort retried reads and writes
In the Linux kernel, the following vulnerability has been resolved:
smb: client: let umount -f abort retried reads and writes
umount -f only wakes up tasks waiting on the server's queues. Reads and writes being retried - forever on hard mounts - keep going, so with the server gone the unmount still hangs in syncfilesystem() waiting for their writeback. NFS kills outstanding RPCs on umount -f instead.
Count umount -f attempts per superblock and have each read and write request remember the count it started with. Fail with -EIO, rather than retry, reissue, issue or wait for credits, any subrequest of a request that predates a umount -f once it is a retry or the server or share is disconnected; a kworker doing writeback can't be signalled out of the credit wait otherwise. First attempts on a connected server still go ahead, and requests started later aren't aborted (but see below), so I/O on a healthy server keeps working if the unmount then fails with -EBUSY or only detaches one of several mounts.
retrycount is not bumped yet when netfsretrywritestream() calls preparewrite() for the first retry, so don't rely on it alone to tell a reissue from a first attempt: treat a subrequest as a retry when it already carries an xid (it has been prepared before) in preparewrite()/prepareread(), or when its replay flag is set in cifsioaborted(), and abort it when the mount is going away even if the connection still looks healthy.
Requests created after umount -f - writeback kicked off by the background flusher, an oplock break or syncfilesystem() during the final teardown - snapshot the already bumped count and would otherwise retry forever on a hard mount, hanging cifskillsb(). Once a superblock that saw a umount -f reaches cifskillsb() the mount is going away for good, so flag it and stop retrying I/O on it too; one that never saw a umount -f still flushes as before.
A sync(2) or syncfs() waiting under sumount for writeback started after umount -f would still keep the unmount from reaching cifskillsb(), so also stop retrying such I/O while sumount is contended. After a failed umount -f, that also stops reads and writes retrying while a remount, freeze or new mount of the same superblock waits on sumount.
Affected Software
Event History
Frequently Asked Questions
Which systems are most likely to encounter this issue?
Linux SMB clients using hard mounts are affected when the SMB server or share becomes unavailable while reads or writes are being retried. The problem is most significant when a forced unmount is attempted during those retries.
What is the operational impact?
A forced unmount can still hang in sync_filesystem() because retried writeback I/O may continue indefinitely on a hard mount after the server disappears. This can leave unmount operations blocked despite using umount -f.
How does the resolved behavior handle in-flight I/O during a forced unmount?
Read and write requests that began before a forced-unmount attempt are failed with -EIO rather than being retried, reissued, or waiting for credits once they retry or the server or share is disconnected. Initial attempts against a connected server can still proceed, and requests started after the forced-unmount attempt are not automatically aborted.