Files
linux-stable-mirror/net/ipv4
MoYuanhaoandGreg Kroah-Hartman e681c5a824 tcp: check space before adding MPTCP SYN options
commit 06d64ab46f upstream.

Ensure there is enough space before adding MPTCP options in
tcp_syn_options().

Without this check, 'remaining' could underflow, and causes issues. If
there is not enough space, MPTCP should not be used.

Signed-off-by: MoYuanhao <moyuanhao3676@163.com>
Fixes: cec37a6e41 ("mptcp: Handle MP_CAPABLE options for outgoing connections")
Cc: stable@vger.kernel.org
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
[ Matt: Add Fixes, cc Stable, update Description ]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241209-net-mptcp-check-space-syn-v1-1-2da992bb6f74@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-19 18:08:48 +01:00
..
2024-03-01 13:26:39 +01:00
2024-12-14 19:53:33 +01:00
2024-09-18 19:23:05 +02:00
2024-10-17 15:21:27 +02:00
2024-12-14 19:53:52 +01:00
2024-10-17 15:21:27 +02:00
2024-12-14 19:53:33 +01:00
2024-08-03 08:49:04 +02:00
2024-12-14 19:53:33 +01:00
2024-12-14 19:53:33 +01:00