Files
linux/drivers/net
David Ahern 56f8ae4e07 vrf: Fix use after free and double free in vrf_finish_output
commit 82dd0d2a9a upstream.

Miguel reported an skb use after free / double free in vrf_finish_output
when neigh_output returns an error. The vrf driver should return after
the call to neigh_output as it takes over the skb on error path as well.

Patch is a simplified version of Miguel's patch which was written for 4.9,
and updated to top of tree.

Fixes: 8f58336d3f ("net: Add ethernet header for pass through VRF device")
Signed-off-by: Miguel Fadon Perlines <mfadon@teldat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ backport to 4.4 and 4.9 dropped the sock_confirm_neigh and
  changed neigh_output to dst_neigh_output ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:27 +02:00
..
2015-08-13 21:12:17 -07:00
2018-03-31 18:12:34 +02:00
2018-04-13 19:50:02 +02:00
2018-03-24 10:58:43 +01:00
2015-10-21 19:36:10 -07:00
2017-11-18 11:11:05 +01:00
2016-04-12 09:08:58 -07:00
2018-03-22 09:23:29 +01:00