tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF

Summary

CVECVE-2026-143203
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:17:57 UTC
Updated2026-12-03 10:17:57 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF After listen() + shutdown(), a TCP socket is moved to the closed section of its reuseport group, while TCP_NEW_SYN_RECV requests can still reference it as rsk_listener. If SO_ATTACH_REUSEPORT_[CE]BPF is then used on this socket, reuseport_attach_prog() calls reuseport_alloc(), which resurrects it into the listening section of a new group, even though the socket is still in TCP_CLOSE. After close(), the socket stays in that group and the pending requests keep it allocated. When the final ACK arrives, reuseport_migrate_sock() can select this dead socket and inet_csk_clone_lock() clones it. With a ULP like espintcp installed while in TCP_CLOSE, the child inherits icsk_ulp_data and sk_destruct after tcp_cleanup_ulp() cleared icsk_ulp_ops, leading to a use-after-free in espintcp_destruct(). As done in commit 8cc3aef0cb19 ("tcp: Do not allow buggy transitions between ehash and lhash2."), deny this transition instead of adding checks to the fast path. Only an unhashed former listener is affected. Applications can still attach a reuseport prog to a socket that never listened, or to a listener (including one that called listen() again after shutdown()).

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 333bb73f620e1a5f2e0b8df2c0d25300fab36d89 c00971ee9ddbdb73db7b0919c10e60a6526b1723 git Not specified
CNA Linux Linux affected 333bb73f620e1a5f2e0b8df2c0d25300fab36d89 a7953fe27e521a1031de6b92c09229f2e92af9fb git Not specified
CNA Linux Linux affected 333bb73f620e1a5f2e0b8df2c0d25300fab36d89 040f915bd4e4d6f328eae4ea80ebac7c19ea25fd git Not specified
CNA Linux Linux affected 333bb73f620e1a5f2e0b8df2c0d25300fab36d89 8c011697f76abf3b2302718a7a1c50e36d849f28 git Not specified
CNA Linux Linux affected 5.14 Not specified
CNA Linux Linux unaffected 5.14 semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc3 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/040f915bd4e4d6f328eae4ea80ebac7c19ea25fd 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c00971ee9ddbdb73db7b0919c10e60a6526b1723 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8c011697f76abf3b2302718a7a1c50e36d849f28 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a7953fe27e521a1031de6b92c09229f2e92af9fb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report