CVE-2026-143039: smb: client: let umount -f abort retried reads and writes

Published Dec 3, 2026
·
Updated

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

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 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.

2

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.

3

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.

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