{"api_version":"1","generated_at":"2026-12-03T15:43:17+00:00","cve":"CVE-2026-143040","urls":{"html":"https://cve.report/CVE-2026-143040","api":"https://cve.report/api/cve/CVE-2026-143040.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143040","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143040"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:32","updated_at":"2026-12-03 10:17:32"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/91d8dfbc7afea5ea091f96fa6667d1a4e029de17","name":"https://git.kernel.org/stable/c/91d8dfbc7afea5ea091f96fa6667d1a4e029de17","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1a747bacf250959703c68fed1bb643f888dd3ad2","name":"https://git.kernel.org/stable/c/1a747bacf250959703c68fed1bb643f888dd3ad2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","name":"https://git.kernel.org/stable/c/986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","name":"https://git.kernel.org/stable/c/2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143040","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143040","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3ee1a1fc39819906f04d6c62c180e760cd3a689d 986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3ee1a1fc39819906f04d6c62c180e760cd3a689d 91d8dfbc7afea5ea091f96fa6667d1a4e029de17 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3ee1a1fc39819906f04d6c62c180e760cd3a689d 2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3ee1a1fc39819906f04d6c62c180e760cd3a689d 1a747bacf250959703c68fed1bb643f888dd3ad2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"986e7f3ac1e7e4e904656b597c3b1a8b17b9e56f","status":"affected","version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","versionType":"git"},{"lessThan":"91d8dfbc7afea5ea091f96fa6667d1a4e029de17","status":"affected","version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","versionType":"git"},{"lessThan":"2562b6c137f6f4b4ef43d74e3a40f94ac5caee0f","status":"affected","version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","versionType":"git"},{"lessThan":"1a747bacf250959703c68fed1bb643f888dd3ad2","status":"affected","version":"3ee1a1fc39819906f04d6c62c180e760cd3a689d","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/client/cifsfs.c","fs/smb/client/cifsglob.h","fs/smb/client/file.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.10"},{"lessThan":"6.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:18:16.298Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"smb: client: issue writes from a worker if the task is dying","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143040","datePublished":"2026-12-03T09:18:16.298Z","dateReserved":"2026-12-03T03:10:28.344Z","dateUpdated":"2026-12-03T09:18:16.298Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:32","lastModifiedDate":"2026-12-03 10:17:32","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143040","Ordinal":"1","Title":"smb: client: issue writes from a worker if the task is dying","CVE":"CVE-2026-143040","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143040","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"smb: client: issue writes from a worker if the task is dying"}]}}}