icmp: Don't leak original dst into ip_route_input()
authorThomas Graf <tgraf@suug.ch>
Tue, 21 Jul 2015 08:43:55 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 17:39:05 +0000 (10:39 -0700)
commit773a69d64bf65eb6c212c97e9737963a2cf668fd
tree2d1f6bbc1cd2d4dce31f1b80d91e0ce7b1339743
parent1d8fff907342d2339796dbd27ea47d0e76a6a2d0
icmp: Don't leak original dst into ip_route_input()

ip_route_input() unconditionally overwrites the dst. Hide the original
dst attached to the skb by calling skb_dst_set(skb, NULL) prior to
ip_route_input().

Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c