{"id":"CVE-2026-143159","summary":"net/smc: fix link group ownership in handshake abort","details":"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-\u003elist is empty, so the alert token and alert node\nstay in lgr-\u003econns_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.","modified":"2026-12-03T11:01:29.188103543Z","published":"2026-12-03T09:19:59.146Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143159.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e1ccba5ecef761de3138d485563b06f57b32011"},{"type":"WEB","url":"https://git.kernel.org/stable/c/420319c0f4236686cc5e1541636f03535d18146d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e227b511582828c5a6513f70fc6a71211e5efbf0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143159.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143159"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2a0674fffb6bc1a7c0f46bb2e0b1bcf1d49c2232"},{"fixed":"420319c0f4236686cc5e1541636f03535d18146d"},{"fixed":"1e1ccba5ecef761de3138d485563b06f57b32011"},{"fixed":"e227b511582828c5a6513f70fc6a71211e5efbf0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143159.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143159.json"}}],"schema_version":"1.9.2"}