CVE-2026-143199: tcp: Drop any segments if DEFER_CONNECT is set.
In the Linux kernel, the following vulnerability has been resolved:
tcp: Drop any segments if DEFERCONNECT is set.
TCP Fast Open lets a client send data in its SYN. With TCPFASTOPENCONNECT and a cached Fast Open cookie, which the server sent in the SYN-ACK of an earlier connection, the connection is set up in two steps:
- connect() sends nothing, so that the SYN can carry the data of the first write(). It only sets DEFERCONNECT and inserts the socket into the hash table in SYNSENT. - The first write() calls tcpconnect(), which runs tcpconnectinit() and sends the SYN.
A socket must not accept any segment before it has sent its SYN. But nothing on the receive path checks DEFERCONNECT. So until the write(), the half-initialised socket processes segments like any socket in SYNSENT, and a forged SYN is accepted.
Similarly, ICMP with seq matching ISN is accepted in the state. Before commit 57889a8f6d49 ("tcp: initialize send sequence numbers before deferring TFO"), even seq 0 message was accepted.
Drop any segments if DEFERCONNECT is set.
[kuniyu: revised DEFERCONNECT tests and the commit message]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Drop any segments received while DEFER_CONNECT is set.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The affected path requires a Linux TCP client using TCP Fast Open with TCP_FASTOPEN_CONNECT and a cached Fast Open cookie obtained from a server during an earlier connection. The socket must be in the deferred-connect state after connect() but before its first write() sends the SYN.
What does an attacker need to exploit the issue?
An attacker must be able to deliver a forged TCP SYN segment, or an ICMP message with a sequence number matching the socket's ISN, during the interval before the client sends its SYN. The vulnerable socket can process those packets even though it has not initiated the connection.
Are all TCP connections affected by default?
The issue is described specifically for the TCP Fast Open deferred-connect path using TCP_FASTOPEN_CONNECT and a cached cookie. The provided information does not establish that ordinary TCP connections or default configurations are affected.