{"id":"CVE-2026-143203","summary":"tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF\n\nAfter listen() + shutdown(), a TCP socket is moved to the closed\nsection of its reuseport group, while TCP_NEW_SYN_RECV requests\ncan still reference it as rsk_listener.\n\nIf SO_ATTACH_REUSEPORT_[CE]BPF is then used on this socket,\nreuseport_attach_prog() calls reuseport_alloc(), which resurrects\nit into the listening section of a new group, even though the\nsocket is still in TCP_CLOSE.\n\nAfter close(), the socket stays in that group and the pending\nrequests keep it allocated. When the final ACK arrives,\nreuseport_migrate_sock() can select this dead socket and\ninet_csk_clone_lock() clones it. With a ULP like espintcp installed\nwhile in TCP_CLOSE, the child inherits icsk_ulp_data and sk_destruct\nafter tcp_cleanup_ulp() cleared icsk_ulp_ops, leading to a\nuse-after-free in espintcp_destruct().\n\nAs done in commit 8cc3aef0cb19 (\"tcp: Do not allow buggy transitions\nbetween ehash and lhash2.\"), deny this transition instead of adding\nchecks to the fast path.\n\nOnly an unhashed former listener is affected. Applications can still\nattach a reuseport prog to a socket that never listened, or to a\nlistener (including one that called listen() again after shutdown()).","modified":"2026-12-03T11:01:40.309093832Z","published":"2026-12-03T09:20:27.612Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143203.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/040f915bd4e4d6f328eae4ea80ebac7c19ea25fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8c011697f76abf3b2302718a7a1c50e36d849f28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7953fe27e521a1031de6b92c09229f2e92af9fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c00971ee9ddbdb73db7b0919c10e60a6526b1723"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143203.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143203"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89"},{"fixed":"c00971ee9ddbdb73db7b0919c10e60a6526b1723"},{"fixed":"a7953fe27e521a1031de6b92c09229f2e92af9fb"},{"fixed":"040f915bd4e4d6f328eae4ea80ebac7c19ea25fd"},{"fixed":"8c011697f76abf3b2302718a7a1c50e36d849f28"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143203.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.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-143203.json"}}],"schema_version":"1.9.2"}