In the Linux kernel, the following vulnerability has been resolved:
net/tcp-ao: fix use-after-free of current_key on reconnect to another peer
tcpinboundaohash() is called before bhlocksocknested() is taken, with only rcureadlock() held. On the fast path for established sockets, if the rnextkeyid sent by the peer differs from currentkey->sndid, the key the peer asked for is looked up and stored in currentkey. The lookup is inside the RCU read side, but currentkey outlives it.
When the socket is disconnected and connect() is called again for another peer, tcpaoconnectinit() unlinks every key that does not match the new peer and frees it with callrcu(). If current_key points at such a key, it is cleared to NULL.
The fast path reads skstate only once on entry, so a softirq that got into it while the socket was still established can update currentkey after that loop has already run. The update is inside the RCU read side, so it comes before the callrcu() callback, and once the callback frees the key, currentkey is left pointing at freed memory.
The next transmission picks that pointer up in tcpgetcurrentkey(). tcpaotransmitskb() then reads the traffic key from the freed object, which is the use-after-free.
Wait for one grace period before unlinking, and only if a key is going to be removed. By the time tcpconnect() runs the socket is already in TCPSYNSENT, and TCPAOESTABLISHED does not contain TCPFSYN_SENT, so a softirq entering after the wait cannot reach the fast path, and the ones already in it have finished. The existing NULL handling in the loop is then enough.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80849.json",
"cna_assigner": "Linux"
}