{"id":"CVE-2026-143040","state":"PUBLISHED","title":"smb: client: issue writes from a worker if the task is dying","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: issue writes from a worker if the task is dying\n\nA task with a fatal signal pending can't send on the socket:\n__smb_send_rqst() refuses it upfront with -ERESTARTSYS, as SIGKILL can't\nbe blocked and a send interrupted halfway forces a reconnect.  Writeback,\nhowever, runs in the context of whoever starts it, so when a dying task\nflushes dirty pages - close() racing with SIGKILL, or fd teardown during\nexit_group() - every write subrequest gets refused:\n\n  smb3_write_err: ... offset=0x1400000 len=0x400000 rc=-512\n  cifs_flush_err: ino=... rc=-512\n\nSince the switch to netfslib, a failed upload ends writeback with the\nfolios clean, so the data is silently lost: the server ends up with\n20MiB of a 64MiB file while stat(2) reports the full size.\n\nIssue writeback subrequests of dying tasks from a new cifswritebackd\nworkqueue instead, like afs does for all of its writes, so they get sent\nfrom a context with no signals.  Leave direct and unbuffered writes\nalone, as their callers get the error.  Use a dedicated WQ_UNBOUND\nworkqueue as the writes may block for long on credits, sends or reopens,\ne.g. on hard mounts with an unresponsive server, and must not hold up\nother cifs work such as reconnects, nor starve the WQ_MEM_RECLAIM\nrescuer of cifsiod_wq.","publishedAt":"2026-12-03T09:18:16.298Z","updatedAt":"2026-12-03T09:18:16.298Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"91d8dfbc7afea5ea091f96fa6667d1a4e029de17","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"1a747bacf250959703c68fed1bb643f888dd3ad2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","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/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"]}],"references":["https://git.kernel.org/stable/c/986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","https://git.kernel.org/stable/c/91d8dfbc7afea5ea091f96fa6667d1a4e029de17","https://git.kernel.org/stable/c/2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","https://git.kernel.org/stable/c/1a747bacf250959703c68fed1bb643f888dd3ad2"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143040.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143040","state":"PUBLISHED","datePublished":"2026-12-03T09:18:16.298Z","dateUpdated":"2026-12-03T09:18:16.298Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.344Z"},"containers":{"cna":{"title":"smb: client: issue writes from a worker if the task is dying","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: issue writes from a worker if the task is dying\n\nA task with a fatal signal pending can't send on the socket:\n__smb_send_rqst() refuses it upfront with -ERESTARTSYS, as SIGKILL can't\nbe blocked and a send interrupted halfway forces a reconnect.  Writeback,\nhowever, runs in the context of whoever starts it, so when a dying task\nflushes dirty pages - close() racing with SIGKILL, or fd teardown during\nexit_group() - every write subrequest gets refused:\n\n  smb3_write_err: ... offset=0x1400000 len=0x400000 rc=-512\n  cifs_flush_err: ino=... rc=-512\n\nSince the switch to netfslib, a failed upload ends writeback with the\nfolios clean, so the data is silently lost: the server ends up with\n20MiB of a 64MiB file while stat(2) reports the full size.\n\nIssue writeback subrequests of dying tasks from a new cifswritebackd\nworkqueue instead, like afs does for all of its writes, so they get sent\nfrom a context with no signals.  Leave direct and unbuffered writes\nalone, as their callers get the error.  Use a dedicated WQ_UNBOUND\nworkqueue as the writes may block for long on credits, sends or reopens,\ne.g. on hard mounts with an unresponsive server, and must not hold up\nother cifs work such as reconnects, nor starve the WQ_MEM_RECLAIM\nrescuer of cifsiod_wq."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"91d8dfbc7afea5ea091f96fa6667d1a4e029de17","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","versionType":"git"},{"version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","status":"affected","lessThan":"1a747bacf250959703c68fed1bb643f888dd3ad2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","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/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f"},{"url":"https://git.kernel.org/stable/c/91d8dfbc7afea5ea091f96fa6667d1a4e029de17"},{"url":"https://git.kernel.org/stable/c/2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f"},{"url":"https://git.kernel.org/stable/c/1a747bacf250959703c68fed1bb643f888dd3ad2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:16.298Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}