]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.
authorJohn Hughes <john@calva.com>
Thu, 8 Apr 2010 04:29:25 +0000 (21:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:44:16 +0000 (12:44 -0700)
commit274430196e3c31e3f8a3671ac06c7cf486f8666b
tree3fdc8b7898a1e81252a6ba25ee0f8e650d532ec1
parentd9de63daf855ea965bd7e8af55f22c40551835d5
x25: Patch to fix bug 15678 - x25 accesses fields beyond end of packet.

commit f5eb917b861828da18dc28854308068c66d1449a upstream.

Here is a patch to stop X.25 examining fields beyond the end of the packet.

For example, when a simple CALL ACCEPTED was received:

10 10 0f

x25_parse_facilities was attempting to decode the FACILITIES field, but this
packet contains no facilities field.

Signed-off-by: John Hughes <john@calva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/x25.h
net/x25/af_x25.c
net/x25/x25_facilities.c
net/x25/x25_in.c