Description
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().
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 < 916558a87f1bd163562cad85af1e75f088306abfaffected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < 271bf19715a67762ff16b27d58b0a42d0e99f231affected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < 7a66771cf858dc547518cf3bda60c0bf8e90f39faffected19f6d3f3c8422d65b5e3d2162e30ef07c6e21ea2 to < 57889a8f6d49fc153aa0017d13086ab736567f8aaffected
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-rc2 to ≤ *unaffected