{"id":"CVE-2026-143039","state":"PUBLISHED","title":"smb: client: let umount -f abort retried reads and writes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: let umount -f abort retried reads and writes\n\numount -f only wakes up tasks waiting on the server's queues.  Reads and\nwrites being retried - forever on hard mounts - keep going, so with the\nserver gone the unmount still hangs in sync_filesystem() waiting for\ntheir writeback.  NFS kills outstanding RPCs on umount -f instead.\n\nCount umount -f attempts per superblock and have each read and write\nrequest remember the count it started with.  Fail with -EIO, rather than\nretry, reissue, issue or wait for credits, any subrequest of a request\nthat predates a umount -f once it is a retry or the server or share is\ndisconnected; a kworker doing writeback can't be signalled out of the\ncredit wait otherwise.  First attempts on a connected server still go\nahead, and requests started later aren't aborted (but see below), so\nI/O on a healthy server keeps working if the unmount then fails with\n-EBUSY or only detaches one of several mounts.\n\nretry_count is not bumped yet when netfs_retry_write_stream() calls\nprepare_write() for the first retry, so don't rely on it alone to tell a\nreissue from a first attempt: treat a subrequest as a retry when it\nalready carries an xid (it has been prepared before) in\nprepare_write()/prepare_read(), or when its replay flag is set in\ncifs_io_aborted(), and abort it when the mount is going away even if the\nconnection still looks healthy.\n\nRequests created after umount -f - writeback kicked off by the background\nflusher, an oplock break or sync_filesystem() during the final teardown -\nsnapshot the already bumped count and would otherwise retry forever on a\nhard mount, hanging cifs_kill_sb().  Once a superblock that saw a umount\n-f reaches cifs_kill_sb() the mount is going away for good, so flag it and\nstop retrying I/O on it too; one that never saw a umount -f still\nflushes as before.\n\nA sync(2) or syncfs() waiting under s_umount for writeback started after\numount -f would still keep the unmount from reaching cifs_kill_sb(), so\nalso stop retrying such I/O while s_umount is contended.  After a failed\numount -f, that also stops reads and writes retrying while a remount,\nfreeze or new mount of the same superblock waits on s_umount.","publishedAt":"2026-12-03T09:18:15.192Z","updatedAt":"2026-12-03T09:18:15.192Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2c1238a7477a2e76a49161937fc20a04c74dbd76","status":"affected","lessThan":"bced8b4c8ed74dfdb46eebc596d49e50aa2292d8","versionType":"git"},{"version":"2c1238a7477a2e76a49161937fc20a04c74dbd76","status":"affected","lessThan":"adeb82ac455582eac1894d1ca1b0aba110a65cc3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_fs_sb.h","fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/cifsproto.h","fs/smb/client/file.c","fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_fs_sb.h","fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/cifsproto.h","fs/smb/client/file.c","fs/smb/client/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/bced8b4c8ed74dfdb46eebc596d49e50aa2292d8","https://git.kernel.org/stable/c/adeb82ac455582eac1894d1ca1b0aba110a65cc3"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143039.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143039","state":"PUBLISHED","datePublished":"2026-12-03T09:18:15.192Z","dateUpdated":"2026-12-03T09:18:15.192Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.344Z"},"containers":{"cna":{"title":"smb: client: let umount -f abort retried reads and writes","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: let umount -f abort retried reads and writes\n\numount -f only wakes up tasks waiting on the server's queues.  Reads and\nwrites being retried - forever on hard mounts - keep going, so with the\nserver gone the unmount still hangs in sync_filesystem() waiting for\ntheir writeback.  NFS kills outstanding RPCs on umount -f instead.\n\nCount umount -f attempts per superblock and have each read and write\nrequest remember the count it started with.  Fail with -EIO, rather than\nretry, reissue, issue or wait for credits, any subrequest of a request\nthat predates a umount -f once it is a retry or the server or share is\ndisconnected; a kworker doing writeback can't be signalled out of the\ncredit wait otherwise.  First attempts on a connected server still go\nahead, and requests started later aren't aborted (but see below), so\nI/O on a healthy server keeps working if the unmount then fails with\n-EBUSY or only detaches one of several mounts.\n\nretry_count is not bumped yet when netfs_retry_write_stream() calls\nprepare_write() for the first retry, so don't rely on it alone to tell a\nreissue from a first attempt: treat a subrequest as a retry when it\nalready carries an xid (it has been prepared before) in\nprepare_write()/prepare_read(), or when its replay flag is set in\ncifs_io_aborted(), and abort it when the mount is going away even if the\nconnection still looks healthy.\n\nRequests created after umount -f - writeback kicked off by the background\nflusher, an oplock break or sync_filesystem() during the final teardown -\nsnapshot the already bumped count and would otherwise retry forever on a\nhard mount, hanging cifs_kill_sb().  Once a superblock that saw a umount\n-f reaches cifs_kill_sb() the mount is going away for good, so flag it and\nstop retrying I/O on it too; one that never saw a umount -f still\nflushes as before.\n\nA sync(2) or syncfs() waiting under s_umount for writeback started after\numount -f would still keep the unmount from reaching cifs_kill_sb(), so\nalso stop retrying such I/O while s_umount is contended.  After a failed\numount -f, that also stops reads and writes retrying while a remount,\nfreeze or new mount of the same superblock waits on s_umount."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2c1238a7477a2e76a49161937fc20a04c74dbd76","status":"affected","lessThan":"bced8b4c8ed74dfdb46eebc596d49e50aa2292d8","versionType":"git"},{"version":"2c1238a7477a2e76a49161937fc20a04c74dbd76","status":"affected","lessThan":"adeb82ac455582eac1894d1ca1b0aba110a65cc3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_fs_sb.h","fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/cifsproto.h","fs/smb/client/file.c","fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_fs_sb.h","fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/cifsproto.h","fs/smb/client/file.c","fs/smb/client/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/bced8b4c8ed74dfdb46eebc596d49e50aa2292d8"},{"url":"https://git.kernel.org/stable/c/adeb82ac455582eac1894d1ca1b0aba110a65cc3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:15.192Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}