WANG Cong e3330039ea ipv6: check for ip6_null_entry in __ip6_del_rt_siblings()
Andrey reported a NULL pointer deref bug in ipv6_route_ioctl()
-> ip6_route_del() -> __ip6_del_rt_siblings() code path. This is
because ip6_null_entry is returned in this path since ip6_null_entry
is kinda default for a ipv6 route table root node. Quote from
David Ahern:

 ip6_null_entry is the root of all ipv6 fib tables making it integrated
 into the table ...

We should ignore any attempt of trying to delete it, like we do in
__ip6_del_rt() path and several others.

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Fixes: 0ae8133586ad ("net: ipv6: Allow shorthand delete of all nexthops in multipath route")
Cc: David Ahern <dsa@cumulusnetworks.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-02 12:43:47 -08:00
..
2017-01-22 16:46:13 -05:00
2017-02-27 18:43:47 -08:00
2017-02-28 15:36:09 -08:00
2016-12-03 23:54:25 -05:00
2017-02-21 13:25:22 -05:00
2016-12-25 17:21:22 +01:00
2017-02-27 18:43:47 -08:00
2017-02-20 11:13:37 -05:00
2016-10-20 11:23:08 -04:00
2017-01-24 11:07:35 +01:00
2017-02-10 14:31:51 -05:00