Re: [Patch net v3] ipv6: check for ip6_null_entry in __ip6_del_rt_siblings()
From: David Ahern <hidden>
Date: 2017-02-28 02:03:29
From: David Ahern <hidden>
Date: 2017-02-28 02:03:29
On 2/27/17 4:07 PM, Cong Wang wrote:
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
Missed this earlier. The issue here is an attempt to delete the NULL
route, not that the null_entry is being returned as happens during a
route lookup. This will also hit the bug:
ip -6 ro del ::/0