{"id":"CVE-2026-143203","state":"PUBLISHED","title":"tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF","description":"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()).","publishedAt":"2026-12-03T09:20:27.612Z","updatedAt":"2026-12-03T09:20:27.612Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"c00971ee9ddbdb73db7b0919c10e60a6526b1723","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"a7953fe27e521a1031de6b92c09229f2e92af9fb","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"040f915bd4e4d6f328eae4ea80ebac7c19ea25fd","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"8c011697f76abf3b2302718a7a1c50e36d849f28","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"]}],"references":["https://git.kernel.org/stable/c/c00971ee9ddbdb73db7b0919c10e60a6526b1723","https://git.kernel.org/stable/c/a7953fe27e521a1031de6b92c09229f2e92af9fb","https://git.kernel.org/stable/c/040f915bd4e4d6f328eae4ea80ebac7c19ea25fd","https://git.kernel.org/stable/c/8c011697f76abf3b2302718a7a1c50e36d849f28"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143203.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143203","state":"PUBLISHED","datePublished":"2026-12-03T09:20:27.612Z","dateUpdated":"2026-12-03T09:20:27.612Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.359Z"},"containers":{"cna":{"title":"tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF","descriptions":[{"lang":"en","value":"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())."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"c00971ee9ddbdb73db7b0919c10e60a6526b1723","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"a7953fe27e521a1031de6b92c09229f2e92af9fb","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"040f915bd4e4d6f328eae4ea80ebac7c19ea25fd","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","status":"affected","lessThan":"8c011697f76abf3b2302718a7a1c50e36d849f28","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c00971ee9ddbdb73db7b0919c10e60a6526b1723"},{"url":"https://git.kernel.org/stable/c/a7953fe27e521a1031de6b92c09229f2e92af9fb"},{"url":"https://git.kernel.org/stable/c/040f915bd4e4d6f328eae4ea80ebac7c19ea25fd"},{"url":"https://git.kernel.org/stable/c/8c011697f76abf3b2302718a7a1c50e36d849f28"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:27.612Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}