AZL-118226: CVE-2026-143159 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net/smc: fix link group ownership in handshake abort
An aborted first-contact handshake can hang the handshake worker on the socket lock it already holds, reset the clcsock of a socket that has fallen back to TCP, or corrupt the alert-node lookup when the handshake retries with the same connection.
The abort leaves a connection registered in a link group that another context has already unlinked for termination: smcconnfree() skips the unregister when lgr->list is empty, so the alert token and alert node stay in lgr->connsall. If the handshake retries another device or SMC version, smcconncreate() creates a second link group and smclgrregisterconn() inserts the same alert node into it: the token loop is skipped, rblinknode() links a node that is still in the old tree into the new one, and a second sockhold() is taken where only one sockput() will follow. The old group's terminator then keeps returning that node from rbfirst() and can kill a connection that now belongs to the new group.
smclgrcleanupearly() also starts a second termination of the link group that is already being terminated, which takes locksock() on the socket the handshake worker holds; if the termination work wins the race instead, it later kills the freed connection and aborts the clcsock of a socket that has fallen back to TCP. Making the unregister unconditional also lets smcconnfree() reach the delayed free work on a claimed link group, where the lockless freeing check can arm it after the owner has cancelled it.
Always unregister the connection, claim a link group for termination once under lgrlock, keep the link group alive across the abort, and arm the delayed free work only under the same lock and cancel it synchronously before the teardown. Drop an already freed connection in smcconnkill() without running the connection and socket teardown.
Affected Software
Event History
Frequently Asked Questions
What conditions are involved in triggering the issue?
The issue involves an aborted first-contact SMC handshake followed by a retry using another device or SMC version. The affected connection can remain registered in its original link group while a new link group is created for the retry.
Can connections that fall back to TCP be affected?
Yes. The abort path can reset the clcsock of a socket that has already fallen back to TCP.
What operational impact can occur during the affected handshake sequence?
The handshake worker can hang on a socket lock it already holds. A stale alert node can also remain in the old link group and cause its terminator to kill a connection that now belongs to a new group.