In the Linux kernel, the following vulnerability has been resolved: tcp: initialize send sequence numbers before deferring TFO TCP_FASTOPEN_CONNECT can return from connect() before tcp_connect_init() when a cached cookie or cookieless Fast Open allows deferring the SYN. At this point write_seq contains the initial sequence number, while snd_una and snd_nxt have not been initialized to that sequence number. Consequently, inet_diag and /proc/net/tcp{,6} report the initial sequence number as the send queue length despite no SYN or payload being queued. Initialize snd_una and snd_nxt to write_seq before marking the connection as deferred. Both sequence-based queue lengths then remain zero until the first write starts the connection and runs tcp_connect_init().
https://git.kernel.org/stable/c/916558a87f1bd163562cad85af1e75f088306abf
https://git.kernel.org/stable/c/7a66771cf858dc547518cf3bda60c0bf8e90f39f
https://git.kernel.org/stable/c/57889a8f6d49fc153aa0017d13086ab736567f8a
https://git.kernel.org/stable/c/271bf19715a67762ff16b27d58b0a42d0e99f231