{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143203","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.359Z","datePublished":"2026-12-03T09:20:27.612Z","dateUpdated":"2026-12-04T03:30:49.544Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:30:49.544Z"},"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())."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - setsockopt(SO_ATTACH_REUSEPORT_CBPF/EBPF) reaches the patched reuseport_attach_prog() through sk_setsockopt() and sk_reuseport_attach_filter()/sk_reuseport_attach_bpf(); reuseport_alloc() resurrects the TCP_CLOSE listener locally, and the ACK later handled by tcp_v4_rcv() is the same attacker's handshake, not a remote protocol field that carries the bug.\nAC:L - The attacker owns both ends: after unshare of a user and net namespace they set tcp_migrate_req, listen with SO_REUSEPORT, leave a TCP_NEW_SYN_RECV request outstanding, shutdown, attach the reuseport filter, setsockopt TCP_ULP espintcp, close, then send the matching ACK so reuseport_migrate_sock() selects that socket.\nPR:L - SO_REUSEPORT, SO_ATTACH_REUSEPORT_CBPF and do_tcp_setsockopt(TCP_ULP) do not check capabilities; migration with a classic filter needs tcp_migrate_req, and net_ctl_permissions() allows that write to CAP_NET_ADMIN in the netns user namespace, which an unprivileged user gets with unshare -Urn.\nUI:N - The attacker performs listen, shutdown, the reuseport setsockopt, TCP_ULP and close on a socket they created, and completes the handshake themselves; no other user mounts media or accepts a prompt.\nS:U - espintcp_destruct() frees and reuses an espintcp_ctx inside the same kernel that accepted the socket calls; this is local kernel memory corruption, not a guest-to-host or IOMMU crossing.\nC:H - sk_clone() in inet_csk_clone_lock() copies icsk_ulp_data after tcp_cleanup_ulp() cleared icsk_ulp_ops, so the child's espintcp_destruct() kfree()s the shared espintcp_ctx and the parent's RCU destructor reads that freed object, including saved_destruct and the strparser.\nI:H - The parent's deferred espintcp_destruct() calls ctx->saved_destruct from the ctx the child already kfree()d; reclaiming that slab object before the RCU callback lets the attacker replace the function pointer and hijack control flow.\nA:H - inet_child_forget() destroys the cloned child and runs espintcp_destruct() on the shared ctx, and the parent socket's later destructor uses the freed ctx, which oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"],"versions":[{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","lessThan":"c00971ee9ddbdb73db7b0919c10e60a6526b1723","status":"affected","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","lessThan":"a7953fe27e521a1031de6b92c09229f2e92af9fb","status":"affected","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","lessThan":"040f915bd4e4d6f328eae4ea80ebac7c19ea25fd","status":"affected","versionType":"git"},{"version":"333bb73f620e1a5f2e0b8df2c0d25300fab36d89","lessThan":"8c011697f76abf3b2302718a7a1c50e36d849f28","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/sock_reuseport.c"],"versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF","x_generator":{"engine":"bippy-1.2.0"}}}}