AZL-118319: CVE-2026-143199 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker must be able to send forged TCP segments to a client socket before that socket sends its SYN. The affected state occurs when TCP Fast Open is used with TCP_FASTOPEN_CONNECT and the client has a cached Fast Open cookie from an earlier connection.
Are ordinary TCP connections affected?
The described issue is specific to the deferred-connect TCP Fast Open path. The socket has DEFER_CONNECT set after connect() and before the first write() sends the SYN; the data does not state that ordinary TCP connections use this state.
What is the impact of receiving a forged packet during the vulnerable window?
A half-initialized socket can process incoming segments as though it were a normal SYN_SENT socket before it has sent its SYN. A forged SYN may be accepted, and matching ICMP messages may also be accepted; before the cited earlier change, even a sequence-zero message could be accepted.
What mitigation is described if an update cannot be applied immediately?
The provided information does not specify an operational workaround. Exposure can be reduced by avoiding the affected TCP Fast Open deferred-connect configuration, specifically TCP_FASTOPEN_CONNECT with a cached Fast Open cookie.