]> 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>
Thu, 9 Dec 2010 21:24:20 +0000 (13:24 -0800)
commitc773a332d06e4ef459533d8299f47114b4014bdd
treed91c2063fbad996375db689d06df4a40361b8e01
parent89c5e8fb2127d908006ff47cda51708fb31151ec
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