]> git.itanic.dy.fi Git - linux-stable/commit
ipv6: tcp: fix panic in SYN processing
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Nov 2011 20:49:31 +0000 (15:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Oct 2013 07:41:44 +0000 (08:41 +0100)
commit676d438e25b8b1fe251c1d474fab86187dbc6293
treeb68b0175b905dd0c12a350eb7c735a84476f9508
parentf11d481f8f81dec26d3370bcf8f4c1f2d53ccefc
ipv6: tcp: fix panic in SYN processing

commit c16a98ed91597b40b22b540c6517103497ef8e74 upstream.

commit 72a3effaf633bc ([NET]: Size listen hash tables using backlog
hint) added a bug allowing inet6_synq_hash() to return an out of bound
array index, because of u16 overflow.

Bug can happen if system admins set net.core.somaxconn &
net.ipv4.tcp_max_syn_backlog sysctls to values greater than 65536

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/inet6_connection_sock.c