]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x25: Prevent skb overreads when checking call user data
authorMatthew Daley <mattjd@gmail.com>
Fri, 14 Oct 2011 18:45:05 +0000 (18:45 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:07 +0000 (11:17 -0800)
commita7a30dfb3d15486c317bc2cac16b29a5dc20b557
tree20a1054ae0f71ffcba784eb26d110acdba6c14d3
parent5db68d378caa011e6f23c015908ad63adfe97409
x25: Prevent skb overreads when checking call user data

commit 7f81e25befdfb3272345a2e775f520e1d515fa20 upstream.

x25_find_listener does not check that the amount of call user data given
in the skb is big enough in per-socket comparisons, hence buffer
overreads may occur.  Fix this by adding a check.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Andrew Hendry <andrew.hendry@gmail.com>
Acked-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/x25/af_x25.c