Re: [PATCH net v7] arp: Do not update neighbours from ARP in L2 multicast/broadcast frames

From: Star Chang

Date: Tue Dec 01 2026 - 01:07:37 EST


Hi Willem, Paolo,

Thanks for the feedback. Before sending v8, I'd like to confirm the
direction on both points:

1. Avoiding behavioral change to drop_unicast_in_l2_multicast

I don't see a way to fully close the Hole-196 ARP poisoning vector
without blocking neighbour learning from L2 BMC ARP frames. Earlier
versions only dropped non-GARP ARP replies in L2 BMC, but as Julian
pointed out, an attacker can still poison the neighbour cache with a
broadcast ARP request (sip = gateway, sha = attacker) via
neigh_event_ns() / neigh_update(). Those frames can't be distinguished
at the ARP layer from legitimate BMC learning (RFC 3927 2.5, GARP
failover, arp_accept).

Would a new opt-in sysctl (disabled by default, leaving
drop_unicast_in_l2_multicast IP-only) be the preferred approach here?
If so, any naming preference (e.g. arp_drop_bmc_learning or similar)?

2. Drop vs. consume

Yes, dropping only ARPOP_REPLY with the existing
SKB_DROP_REASON_UNICAST_IN_L2_MULTICAST and consuming ARPOP_REQUEST via
out_consume_skb avoids false-positive drops on ordinary broadcast
requests, and only adds a few lines with no new drop reason enum. I can
switch to that (or consume all of them if we move to a separate sysctl
and you prefer consume_skb()).

Let me know which way you prefer and I'll update v8 accordingly.

Thanks,
Star