commit bb59adefa5eccfde1e7e174a8fb48fe45bc089f9
Author: Denis V. Lunev <[EMAIL PROTECTED]>
Date:   Wed Mar 5 14:43:05 2008 -0800

    IPV6: dst_entry leak in ip4ip6_err.
    
    Upstream commit: 9937ded8e44de8865cba1509d24eea9d350cebf0
    
    The result of the ip_route_output is not assigned to skb. This means that
    - it is leaked
    - possible OOPS below dereferrencing skb->dst
    - no ICMP message for this case
    
    Signed-off-by: Denis V. Lunev <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
    Signed-off-by: Chris Wright <[EMAIL PROTECTED]>

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 5383b33..81941a1 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -550,6 +550,7 @@ ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
                        ip_rt_put(rt);
                        goto out;
                }
+               skb2->dst = (struct dst_entry *)rt;
        } else {
                ip_rt_put(rt);
                if (ip_route_input(skb2, eiph->daddr, eiph->saddr, eiph->tos,
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to