net: fix null pointer dereference when parsing ICMP6_ROUTER_ADVERTISE messages
Quoted 11 lines · Daniel Kiper
Quoted 10 lines · Qiumiao Zhang via Grub-devel
During UEFI PXE boot in IPv6 network, if the DHCP server adopts stateful automatic configuration, then the client receives a
ICMP6_ROUTER_ADVERTISEmulticast message from the server. This may be received without the interfaced having a configured network address, soorig_infwill be null, which can lead to a null dereference when creating the default route. Actually, in this case, the client obtains the default route through DHCPv6 instead of RA messages. So iforig_inf== NULL androute_inf== null, we should not set the default route.
Quoted 4 lines
Quoted 1 line
Missing "Signed-off-by: Qiumiao Zhang <[email protected]>" line. May I add it on behalf of you?
Yes, that's perfect.
Quoted 1 line
Otherwise Reviewed-by: Daniel Kiper <[email protected]>
Qiumiao
Quoted 12 lines · zhangqiumiao via Grub-devel
Quoted 11 lines · Daniel Kiper
Quoted 10 lines · Qiumiao Zhang via Grub-devel
During UEFI PXE boot in IPv6 network, if the DHCP server adopts stateful automatic configuration, then the client receives a
ICMP6_ROUTER_ADVERTISEmulticast message from the server. This may be received without the interfaced having a configured network address, soorig_infwill be null, which can lead to a null dereference when creating the default route. Actually, in this case, the client obtains the default route through DHCPv6 instead of RA messages. So iforig_inf== NULL androute_inf== null, we should not set the default route.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Missing "Signed-off-by: Qiumiao Zhang <[email protected]>" line. May I add it on behalf of you?
Yes, that's perfect.
Cool! Thank you for fixing this!
Daniel