]> err.no Git - linux-2.6/commit
[NETFILTER]: SCTP conntrack: fix crash triggered by packet without chunks
authorPatrick McHardy <kaber@trash.net>
Fri, 30 Jun 2006 04:40:23 +0000 (21:40 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 30 Jun 2006 21:12:01 +0000 (14:12 -0700)
commitdd7271feba61d5dc0fab1cb5365db9926d35ea3a
tree36adf4a907e72b07eb4b37bbd679357fe4c0729f
parent2c6059bca8cf5e7f722d909f2e5edda0491ac604
[NETFILTER]: SCTP conntrack: fix crash triggered by packet without chunks

When a packet without any chunks is received, the newconntrack variable
in sctp_packet contains an out of bounds value that is used to look up an
pointer from the array of timeouts, which is then dereferenced, resulting
in a crash. Make sure at least a single chunk is present.

Problem noticed by George A. Theall <theall@tenablesecurity.com>

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_sctp.c