[PATCH] NETFILTER: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr derefer...
commit8c640bd0c68201dd0d71b78a07bb224973580ad3
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:25:32 +0000 (7 14:25 -0700)
tree39b83ebeedd97a273f342c1ff5601d707e01215e
parentc23e7e4c94647c2c47d2c835b21cc7d745f62d05
[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