900-CVE-2008-2136.patch 746 B

1234567891011121314151617181920212223242526
  1. Backport of:
  2. From: David S. Miller <[email protected]>
  3. Date: Fri, 9 May 2008 06:40:26 +0000 (-0700)
  4. Subject: sit: Add missing kfree_skb() on pskb_may_pull() failure.
  5. X-Git-Tag: v2.6.26-rc2~19^2
  6. X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=36ca34cc3b8335eb1fe8bd9a1d0a2592980c3f02
  7. sit: Add missing kfree_skb() on pskb_may_pull() failure.
  8. Noticed by Paul Marks <[email protected]>.
  9. Signed-off-by: David S. Miller <[email protected]>
  10. --- a/net/ipv6/sit.c
  11. +++ b/net/ipv6/sit.c
  12. @@ -410,9 +410,9 @@ int ipip6_rcv(struct sk_buff *skb)
  13. }
  14. icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0);
  15. - kfree_skb(skb);
  16. read_unlock(&ipip6_lock);
  17. out:
  18. + kfree_skb(skb);
  19. return 0;
  20. }