]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:24 +0000 (15:35 -0400)
commit634a1a9359529a289f764a26911eb1a5a3b85a42
tree47d0282bc13e3c868217c0e59d9fe648c3290c23
parentdb9ef6e22cbfff5726fccdf509ae9581aa069a0b
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: Paul Gortmaker <paul.gortmaker@windriver.com>
net/x25/af_x25.c