Description
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(AF_UNSPEC) + 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 unhashed_state is placed in the 4-byte hole after icsk_pmtu_cookie. $ pahole -C inet_connection_sock vmlinux struct inet_connection_sock { ... __u32 icsk_pmtu_cookie; /* 1208 4 */ unsigned char unhashed_state; /* 1212 1 */ /* XXX 3 bytes hole, try to pack */
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 79dbec9552ea23ac4429626fa608aff520246d1daffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7d1bb706ffa4c1ef7e06858c91fe9c35b1892be4affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 0b29f696c06a21f8bce84345d57ffbe82a11e11baffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 8cc3aef0cb198049805ecc061a2cc7b79b0ae43eaffected0 to < 6.12.120affected0 to < 6.18.66affected0 to < 7.3.7affected
Linux Linux
Default version status: affected
6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected