CVE-2026-143203: tcp: do not resurrect a former listener with SO_ATTACH_REUSEPORT_[CE]BPF

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

After listen() + shutdown(), a TCP socket is moved to the closed section of its reuseport group, while TCPNEWSYNRECV requests can still reference it as rsklistener.

If SOATTACHREUSEPORT[CE]BPF is then used on this socket, reuseportattachprog() calls reuseportalloc(), which resurrects it into the listening section of a new group, even though the socket is still in TCPCLOSE.

After close(), the socket stays in that group and the pending requests keep it allocated. When the final ACK arrives, reuseportmigratesock() can select this dead socket and inetcskclonelock() clones it. With a ULP like espintcp installed while in TCPCLOSE, the child inherits icskulpdata and skdestruct after tcpcleanupulp() cleared icskulpops, leading to a use-after-free in espintcpdestruct().

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()).

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.14.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

Which socket lifecycle is required for this issue to occur?

The affected socket must be an unhashed former listener: it has called listen() and shutdown(), moved into TCP_CLOSE, and still has pending TCP_NEW_SYN_RECV requests referencing it. Attaching an SO_ATTACH_REUSEPORT_CBPF or SO_ATTACH_REUSEPORT_EBPF program at that point can incorrectly place it into a new reuseport group's listening section.

2

What additional condition turns the invalid listener transition into a use-after-free?

After the former listener is closed, a final ACK can cause reuseport migration to select the dead socket and clone it. If a ULP such as espintcp was installed while the socket was in TCP_CLOSE, the cloned child can inherit stale ULP data and invoke espintcp_destruct() after the ULP operations were cleared.

3

What does the fix change, and what should be avoided before it is deployed?

The fix denies the invalid transition that would resurrect an unhashed former listener into a reuseport listening group, rather than adding checks to the connection fast path. Until the fix is deployed, avoid attaching SO_ATTACH_REUSEPORT_CBPF or SO_ATTACH_REUSEPORT_EBPF to sockets that were listeners but have been shut down and are in TCP_CLOSE, particularly where espintcp is used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203