{"id":"CVE-2026-143159","state":"PUBLISHED","title":"net/smc: fix link group ownership in handshake abort","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: fix link group ownership in handshake abort\n\nAn aborted first-contact handshake can hang the handshake worker on the\nsocket lock it already holds, reset the clcsock of a socket that has\nfallen back to TCP, or corrupt the alert-node lookup when the handshake\nretries with the same connection.\n\nThe abort leaves a connection registered in a link group that another\ncontext has already unlinked for termination: smc_conn_free() skips the\nunregister when lgr->list is empty, so the alert token and alert node\nstay in lgr->conns_all. If the handshake retries another device or SMC\nversion, smc_conn_create() creates a second link group and\nsmc_lgr_register_conn() inserts the same alert node into it: the token\nloop is skipped, rb_link_node() links a node that is still in the old\ntree into the new one, and a second sock_hold() is taken where only one\nsock_put() will follow. The old group's terminator then keeps returning\nthat node from rb_first() and can kill a connection that now belongs to\nthe new group.\n\nsmc_lgr_cleanup_early() also starts a second termination of the link\ngroup that is already being terminated, which takes lock_sock() on the\nsocket the handshake worker holds; if the termination work wins the race\ninstead, it later kills the freed connection and aborts the clcsock of a\nsocket that has fallen back to TCP. Making the unregister unconditional\nalso lets smc_conn_free() reach the delayed free work on a claimed link\ngroup, where the lockless freeing check can arm it after the owner has\ncancelled it.\n\nAlways unregister the connection, claim a link group for termination\nonce under lgr_lock, keep the link group alive across the abort, and arm\nthe delayed free work only under the same lock and cancel it\nsynchronously before the teardown. Drop an already freed connection in\nsmc_conn_kill() without running the connection and socket teardown.","publishedAt":"2026-12-03T09:19:59.146Z","updatedAt":"2026-12-03T09:19:59.146Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"420319c0f4236686cc5e1541636f03535d18146d","versionType":"git"},{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"1e1ccba5ecef761de3138d485563b06f57b32011","versionType":"git"},{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"e227b511582828c5a6513f70fc6a71211e5efbf0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_core.c","net/smc/smc_core.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","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":["net/smc/af_smc.c","net/smc/smc_core.c","net/smc/smc_core.h"]}],"references":["https://git.kernel.org/stable/c/420319c0f4236686cc5e1541636f03535d18146d","https://git.kernel.org/stable/c/1e1ccba5ecef761de3138d485563b06f57b32011","https://git.kernel.org/stable/c/e227b511582828c5a6513f70fc6a71211e5efbf0"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143159.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143159","state":"PUBLISHED","datePublished":"2026-12-03T09:19:59.146Z","dateUpdated":"2026-12-03T09:19:59.146Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.355Z"},"containers":{"cna":{"title":"net/smc: fix link group ownership in handshake abort","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: fix link group ownership in handshake abort\n\nAn aborted first-contact handshake can hang the handshake worker on the\nsocket lock it already holds, reset the clcsock of a socket that has\nfallen back to TCP, or corrupt the alert-node lookup when the handshake\nretries with the same connection.\n\nThe abort leaves a connection registered in a link group that another\ncontext has already unlinked for termination: smc_conn_free() skips the\nunregister when lgr->list is empty, so the alert token and alert node\nstay in lgr->conns_all. If the handshake retries another device or SMC\nversion, smc_conn_create() creates a second link group and\nsmc_lgr_register_conn() inserts the same alert node into it: the token\nloop is skipped, rb_link_node() links a node that is still in the old\ntree into the new one, and a second sock_hold() is taken where only one\nsock_put() will follow. The old group's terminator then keeps returning\nthat node from rb_first() and can kill a connection that now belongs to\nthe new group.\n\nsmc_lgr_cleanup_early() also starts a second termination of the link\ngroup that is already being terminated, which takes lock_sock() on the\nsocket the handshake worker holds; if the termination work wins the race\ninstead, it later kills the freed connection and aborts the clcsock of a\nsocket that has fallen back to TCP. Making the unregister unconditional\nalso lets smc_conn_free() reach the delayed free work on a claimed link\ngroup, where the lockless freeing check can arm it after the owner has\ncancelled it.\n\nAlways unregister the connection, claim a link group for termination\nonce under lgr_lock, keep the link group alive across the abort, and arm\nthe delayed free work only under the same lock and cancel it\nsynchronously before the teardown. Drop an already freed connection in\nsmc_conn_kill() without running the connection and socket teardown."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"420319c0f4236686cc5e1541636f03535d18146d","versionType":"git"},{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"1e1ccba5ecef761de3138d485563b06f57b32011","versionType":"git"},{"version":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232","status":"affected","lessThan":"e227b511582828c5a6513f70fc6a71211e5efbf0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/smc/af_smc.c","net/smc/smc_core.c","net/smc/smc_core.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.5","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":["net/smc/af_smc.c","net/smc/smc_core.c","net/smc/smc_core.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/420319c0f4236686cc5e1541636f03535d18146d"},{"url":"https://git.kernel.org/stable/c/1e1ccba5ecef761de3138d485563b06f57b32011"},{"url":"https://git.kernel.org/stable/c/e227b511582828c5a6513f70fc6a71211e5efbf0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:59.146Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}