[PATCH] NETFILTER: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr derefer...
commit13ad357c616a85828fa224c0876a393d1dd6f59f
authorPatrick McHardy <kaber@trash.net>
Tue, 5 Jun 2007 12:14:22 +0000 (5 14:14 +0200)
committerChris Wright <chrisw@sous-sol.org>
Thu, 7 Jun 2007 21:23:05 +0000 (7 14:23 -0700)
tree2fb97a31bf502de57d3c69c35b97ba1e62328069
parent6a5357887e4ebfd9c0f472cffc58bcdf426f4cad
[PATCH] NETFILTER: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr dereference (CVE-2007-2876)

When creating a new connection by sending an unknown chunk type, we
don't transition to a valid state, causing a NULL pointer dereference in
sctp_packet when accessing sctp_timeouts[SCTP_CONNTRACK_NONE].

Fix by don't creating new conntrack entry if initial state is invalid.

Noticed by Vilmos Nebehaj <vilmos.nebehaj@ramsys.hu>

CC: Kiran Kumar Immidi <immidi_kiran@yahoo.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/ipv4/netfilter/ip_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_sctp.c