{"id":"CVE-2026-143042","state":"PUBLISHED","title":"smb: client: hold server ref while queueing reconnect work","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: hold server ref while queueing reconnect work\n\nWhen query_server_interfaces() returns -EOPNOTSUPP on a secondary\nchannel, smb2_reconnect() calls smb3_update_ses_channels() which for a\nchannel runs cifs_chan_skip_or_disable().  That clears the channel's\nslot in the session and calls cifs_put_tcp_session(), which can drop\nthe last reference of the channel and tear it down.\n\nsmb2_reconnect() then falls through to skip_add_channels and queues\nreconnect work on that server, using a server that may already be\nfreed.  The send path obtained the channel from cifs_pick_channel(),\nwhich does not take a reference, so the session's channel reference is\nthe only one.\n\nTake our own reference on the channel before calling\nsmb3_update_ses_channels() and drop it after the reconnect work has\nbeen queued, so the channel cannot be freed while it is still used.","publishedAt":"2026-12-03T09:18:18.274Z","updatedAt":"2026-12-03T09:18:18.274Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f591062bdbf4742b7f1622173017f19e927057b0","status":"affected","lessThan":"6d57e23dff80a7bdf9d29ba4ea082804278bab92","versionType":"git"},{"version":"f591062bdbf4742b7f1622173017f19e927057b0","status":"affected","lessThan":"f02d249e9756b78990aaaa1635e47e06deb2cb51","versionType":"git"},{"version":"50e8363ecc85da49764781da90ebffe1a657b370","status":"affected","versionType":"git"},{"version":"d61ba1d71ea6039eca7ada870bf3f0c3c8fc12e4","status":"affected","versionType":"git"},{"version":"6.6.15","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.7.3","status":"affected","lessThan":"6.8","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","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/smb2pdu.c"]}],"references":["https://git.kernel.org/stable/c/6d57e23dff80a7bdf9d29ba4ea082804278bab92","https://git.kernel.org/stable/c/f02d249e9756b78990aaaa1635e47e06deb2cb51"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143042.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143042","state":"PUBLISHED","datePublished":"2026-12-03T09:18:18.274Z","dateUpdated":"2026-12-03T09:18:18.274Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.344Z"},"containers":{"cna":{"title":"smb: client: hold server ref while queueing reconnect work","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: hold server ref while queueing reconnect work\n\nWhen query_server_interfaces() returns -EOPNOTSUPP on a secondary\nchannel, smb2_reconnect() calls smb3_update_ses_channels() which for a\nchannel runs cifs_chan_skip_or_disable().  That clears the channel's\nslot in the session and calls cifs_put_tcp_session(), which can drop\nthe last reference of the channel and tear it down.\n\nsmb2_reconnect() then falls through to skip_add_channels and queues\nreconnect work on that server, using a server that may already be\nfreed.  The send path obtained the channel from cifs_pick_channel(),\nwhich does not take a reference, so the session's channel reference is\nthe only one.\n\nTake our own reference on the channel before calling\nsmb3_update_ses_channels() and drop it after the reconnect work has\nbeen queued, so the channel cannot be freed while it is still used."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f591062bdbf4742b7f1622173017f19e927057b0","status":"affected","lessThan":"6d57e23dff80a7bdf9d29ba4ea082804278bab92","versionType":"git"},{"version":"f591062bdbf4742b7f1622173017f19e927057b0","status":"affected","lessThan":"f02d249e9756b78990aaaa1635e47e06deb2cb51","versionType":"git"},{"version":"50e8363ecc85da49764781da90ebffe1a657b370","status":"affected","versionType":"git"},{"version":"d61ba1d71ea6039eca7ada870bf3f0c3c8fc12e4","status":"affected","versionType":"git"},{"version":"6.6.15","status":"affected","lessThan":"6.7","versionType":"semver"},{"version":"6.7.3","status":"affected","lessThan":"6.8","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2pdu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","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/smb2pdu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6d57e23dff80a7bdf9d29ba4ea082804278bab92"},{"url":"https://git.kernel.org/stable/c/f02d249e9756b78990aaaa1635e47e06deb2cb51"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:18:18.274Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}