CVE-2026-143204: tcp: Do not allow buggy transitions between ehash and lhash2.
In the Linux kernel, the following vulnerability has been resolved:
tcp: Do not allow buggy transitions between ehash and lhash2.
The following state transitions have long been a playground for syzbot, and recently AI joined in, reporting a lot more bugs.
listen() + shutdown() + connect() connect() + connect(AFUNSPEC) + listen()
All the fix attempts would add more code to the fast path, which is not worth it.
Instead of playing whack-a-mole with these edge-case bugs, let's disallow these transitions.
Note that unhashedstate is placed in the 4-byte hole after icskpmtucookie.
$ pahole -C inetconnectionsock vmlinux struct inetconnectionsock { ... u32 icskpmtucookie; / 1208 4 / unsigned char unhashedstate; / 1212 1 /
/ XXX 3 bytes hole, try to pack /
Affected Software
Event History
Frequently Asked Questions
What can be done if applying a kernel update is not immediately possible?
Avoid using the affected TCP socket transition sequences: listen() followed by shutdown() and connect(), and connect() followed by connect(AF_UNSPEC) and listen(). The resolution prevents these transitions rather than adding handling in the TCP fast path.
Which upstream stable changes contain the resolution?
The referenced stable commits are 79dbec9552ea23ac4429626fa608aff520246d1d, 7d1bb706ffa4c1ef7e06858c91fe9c35b1892be4, and 0b29f696c06a21f8bce84345d57ffbe82a11e11b.