Skip to content
Browse files

net: ipv6: Drop pkt if src address is unspecified

If we receive IPv6 packet where source address is unspecified
(all zeros), then we need to drop it.

Fixes #17450

Signed-off-by: Jukka Rissanen <>
  • Loading branch information...
jukkar committed Jul 10, 2019
1 parent 8083f8a commit 44d6838d2bd00aa4f21158206f7bc769afacf038
Showing with 5 additions and 0 deletions.
  1. +5 −0 subsys/net/ip/ipv6.c
@@ -383,6 +383,11 @@ enum net_verdict net_ipv6_input(struct net_pkt *pkt, bool is_loopback)

if (net_ipv6_is_addr_unspecified(&hdr->src)) {
NET_DBG("DROP: src addr is %s", "unspecified");
goto drop;

if (net_ipv6_is_addr_mcast(&hdr->src) ||
net_ipv6_is_addr_mcast_scope(&hdr->dst, 0)) {
NET_DBG("DROP: multicast packet");

0 comments on commit 44d6838

Please sign in to comment.
You can’t perform that action at this time.