/[linux-patches]/genpatches-2.6/trunk/2.6.14/1498_16.8_ip_route_input-fix.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1498_16.8_ip_route_input-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 427 - (show annotations) (download) (as text)
Thu Apr 20 20:16:15 2006 UTC (14 years, 7 months ago) by johnm
File MIME type: text/x-diff
File size: 565 byte(s)
bump to fix CVE-2006-1056, CVE-2006-1525, CVE-2006-1524
1 diff --git a/net/ipv4/route.c b/net/ipv4/route.c
2 index fca5fe0..a67955e 100644
3 --- a/net/ipv4/route.c
4 +++ b/net/ipv4/route.c
5 @@ -2750,7 +2750,10 @@ int inet_rtm_getroute(struct sk_buff *in
6 /* Reserve room for dummy headers, this skb can pass
7 through good chunk of routing engine.
8 */
9 - skb->mac.raw = skb->data;
10 + skb->mac.raw = skb->nh.raw = skb->data;
11 +
12 + /* Bugfix: need to give ip_route_input enough of an IP header to not gag. */
13 + skb->nh.iph->protocol = IPPROTO_ICMP;
14 skb_reserve(skb, MAX_HEADER + sizeof(struct iphdr));
15
16 if (rta[RTA_SRC - 1])

  ViewVC Help
Powered by ViewVC 1.1.20