OSDN Git Service

[IPV4]: ip_route_input panic fix (CVE-2006-1525)
authorStephen Hemminger <shemminger@osdl.org>
Mon, 29 May 2006 06:27:17 +0000 (23:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 May 2006 06:27:17 +0000 (23:27 -0700)
commit4ff1c7d9b24059c758ed4600f35da71a0b11557a
treed899f9983c5500765b677d419657a75d88fdad40
parent3bbf58a7d45e5b50d70215c5894aa0438a8f831d
[IPV4]: ip_route_input panic fix (CVE-2006-1525)

This fixes http://bugzilla.kernel.org/show_bug.cgi?id=6388
The bug is caused by ip_route_input dereferencing skb->nh.protocol of
the dummy skb passed dow from inet_rtm_getroute (Thanks Thomas for seeing
it). It only happens if the route requested is for a multicast IP
address.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c