]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 21:47:09 +0000 (13:47 -0800)
commita7cb078b62e01a7931dcb37dbb318637f4e8fbdc
treeb61f9f0fd500706610e1273819f1ee84b01f5095
parent9808503648bbc8656ac51a51a42f18bfd4bbbabb
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