]> err.no Git - linux-2.6/commit
[NETFILTER]: {ip, nf}_conntrack_sctp: fix remotely triggerable NULL ptr dereference...
authorPatrick McHardy <kaber@trash.net>
Wed, 11 Jul 2007 06:24:52 +0000 (23:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2007 06:24:52 +0000 (23:24 -0700)
commit99d24edeb6abc6ca3a0d0fbdb83c664c04403c8c
tree1ddcd854dd106878c4e7fcc55147131a137d4aca
parent56b3d975bbce65f655c5612b4822da671f9fd9b2
[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>

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_proto_sctp.c