Description
In the Linux kernel, the following vulnerability has been resolved: tcp: Drop any segments if DEFER_CONNECT is set. TCP Fast Open lets a client send data in its SYN. With TCP_FASTOPEN_CONNECT 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 DEFER_CONNECT and inserts the socket into the hash table in SYN_SENT. - The first write() calls tcp_connect(), which runs tcp_connect_init() and sends the SYN. A socket must not accept any segment before it has sent its SYN. But nothing on the receive path checks DEFER_CONNECT. So until the write(), the half-initialised socket processes segments like any socket in SYN_SENT, 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 DEFER_CONNECT is set. [kuniyu: revised DEFER_CONNECT tests and the commit message]
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < e2b5c5a848d8f29f5c7bd32aefa5d1f533bcdaeaaffected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < 3b07ffb280cf172e9185334c15d91b0c2c96f372affected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < ff1dfbb8fd2ba5bdbed637947c52adc5e7208421affected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < 44809e49177992b15708a150437d9aebc5beea9caffected
Linux Linux
Default version status: affected
4.11affected0 to < 4.11unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected