In the Linux kernel, the following vulnerability has been resolved:
mptcp: do not use Fast Open on MP_JOIN subflows
tcp_fastopen_create_child() hands the SYN packet itself to
subflow_syn_recv_sock(). For an MP_JOIN request this takes the
fatal fallback: the cloned child is destroyed and handed back with
drop_req flagged, but tcp_fastopen_create_child() does not check
the flag and queues it, so accept() can expose the freed child.
MP_JOIN cannot use Fast Open: data on a subflow requires the
completed HMAC exchange (RFC 8684, sec. 3.2). Refuse it (only the
TFO path passes a SYN skb here) and let tcp_conn_request() fall
back to the regular MP_JOIN handshake; also strip the Fast Open
cookie from MP_JOIN SYN/ACKs.
[ Moving code to avoid clearing TS and consolidating checks. ]
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8
AV:N - The triggering input is a routable TCP SYN carrying an MPTCP MP_JOIN option and a Fast Open cookie. tcp_v4_rcv or tcp_v6_rcv (LISTEN) calls tcp_rcv_state_process, which calls subflow_v4_conn_request or subflow_v6_conn_request and tcp_conn_request; tcp_try_fastopen passes that SYN skb into the patched subflow_syn_recv_sock.
AC:L - The attacker completes an MP_CAPABLE handshake so subflow_token_join_request accepts its token, requests a TFO cookie (SipHash of the address pair), and sends an MP_JOIN SYN with that cookie. The SYN has no MPJ_ACK, so subflow_syn_recv_sock takes fallback_is_fatal and dispose_child, and tcp_fastopen_create_child still queues the child. No race or second party is required on a listener that already has TFO enabled.
PR:N - Any remote host can open an MP_CAPABLE connection and read the token from the server key; subflow_check_req then accepts the MP_JOIN SYN with no credential check. The fatal fallback in subflow_syn_recv_sock happens because the SYN lacks OPTION_MPTCP_MPJ_ACK, before subflow_hmac_valid, so the join HMAC is never required.
UI:N - The attacker sends the MP_JOIN SYN. tcp_conn_request queues the destroyed child and wakes the listener with sk_data_ready; mptcp_stream_accept is the server's existing accept loop. The retransmit timer started in tcp_fastopen_create_child drops the last sock ref even if that accept is delayed.
S:U - The freed object is the child struct sock created by tcp_v4_syn_recv_sock or tcp_v6_syn_recv_sock for this host's MPTCP listener. Corruption stays in that host kernel and does not cross a guest/host or other security boundary.
C:H - dispose_child calls inet_csk_destroy_sock, but tcp_fastopen_create_child ignores drop_req, queues the child, and arms a retransmit timer whose sock_hold is the last reference; tcp_write_timer later sock_puts it. mptcp_stream_accept then returns that freed sock through inet_csk_accept, a struct sock use-after-free that can disclose kernel memory.
I:H - After subflow_ulp_fallback clears is_mptcp, __inet_accept grafts the freed child into a userspace fd on the TCP fallback path. A later close calls inet_csk_destroy_sock again via tcp_close, and reclaiming the sock slab lets the attacker steer writes through socket operations.
A:H - The child is freed while it remains on the listener accept queue (req->sk) and while tcp_retransmit_timer is still armed. The next inet_csk_accept touches that memory in inet_init_csk_locks, and tcp_write_timer runs after the refcount hits zero, either of which oopses the host.
| Attack Vector |
Network |
Scope |
Unchanged |
| Attack Complexity |
Low |
Confidentiality Impact |
High |
| Privileges Required |
None |
Integrity Impact |
High |
| User Interaction |
None |
Availability Impact |
High |
AV:N - The triggering input is a routable TCP SYN carrying an MPTCP MP_JOIN option and a Fast Open cookie. tcp_v4_rcv or tcp_v6_rcv (LISTEN) calls tcp_rcv_state_process, which calls subflow_v4_conn_request or subflow_v6_conn_request and tcp_conn_request; tcp_try_fastopen passes that SYN skb into the patched subflow_syn_recv_sock.
AC:L - The attacker completes an MP_CAPABLE handshake so subflow_token_join_request accepts its token, requests a TFO cookie (SipHash of the address pair), and sends an MP_JOIN SYN with that cookie. The SYN has no MPJ_ACK, so subflow_syn_recv_sock takes fallback_is_fatal and dispose_child, and tcp_fastopen_create_child still queues the child. No race or second party is required on a listener that already has TFO enabled.
PR:N - Any remote host can open an MP_CAPABLE connection and read the token from the server key; subflow_check_req then accepts the MP_JOIN SYN with no credential check. The fatal fallback in subflow_syn_recv_sock happens because the SYN lacks OPTION_MPTCP_MPJ_ACK, before subflow_hmac_valid, so the join HMAC is never required.
UI:N - The attacker sends the MP_JOIN SYN. tcp_conn_request queues the destroyed child and wakes the listener with sk_data_ready; mptcp_stream_accept is the server's existing accept loop. The retransmit timer started in tcp_fastopen_create_child drops the last sock ref even if that accept is delayed.
S:U - The freed object is the child struct sock created by tcp_v4_syn_recv_sock or tcp_v6_syn_recv_sock for this host's MPTCP listener. Corruption stays in that host kernel and does not cross a guest/host or other security boundary.
C:H - dispose_child calls inet_csk_destroy_sock, but tcp_fastopen_create_child ignores drop_req, queues the child, and arms a retransmit timer whose sock_hold is the last reference; tcp_write_timer later sock_puts it. mptcp_stream_accept then returns that freed sock through inet_csk_accept, a struct sock use-after-free that can disclose kernel memory.
I:H - After subflow_ulp_fallback clears is_mptcp, __inet_accept grafts the freed child into a userspace fd on the TCP fallback path. A later close calls inet_csk_destroy_sock again via tcp_close, and reclaiming the sock slab lets the attacker steer writes through socket operations.
A:H - The child is freed while it remains on the listener accept queue (req->sk) and while tcp_retransmit_timer is still armed. The next inet_csk_accept touches that memory in inet_init_csk_locks, and tcp_write_timer runs after the refcount hits zero, either of which oopses the host.
CVSS 3.1