mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Star Chang <starchang@google.com>
To: ja@ssi.bg, johannes@sipsolutions.net
Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com,
	 davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com,  horms@kernel.org,
	linux-kernel@vger.kernel.org, wangroger@google.com,
	 starchang@google.com
Subject: Re: [PATCH net v4] net: Fix Hole-196 vulnerability by dropping unicast ARP/IP in L2 BMC
Date: Mon,  2 Nov 2026 07:05:52 +0000	[thread overview]
Message-ID: <20261102070552.3516567-1-starchang@google.com> (raw)
In-Reply-To: <c2780bb291244cf32c1dbda63f0dcf594d22da30.camel@sipsolutions.net>

Hi Julian, Johannes,

Thank you both for the great discussion and perspectives!

Putting the two points together gives a very clear and coherent picture:

1. Julian correctly pointed out the real security risk with Hole-196:
   Attackers can abuse not only unicast ARP replies, but also broadcast GARP
   announcements (sip == tip == gateway_ip) to poison peer caches in a
   shared-key network.

2. At the same time, as Johannes reminded, Linux already has a dedicated knob
   for that specific broadcast behavior: `drop_gratuitous_arp`.

Looking at the existing architecture, the two knobs complement each other
naturally:
- `drop_unicast_in_l2_multicast`: strictly enforces the L3/L2 boundary by
  dropping unicast IP and unicast ARP replies (sip != tip) inside L2 BMC.
- `drop_gratuitous_arp`: drops broadcast GARP (sip == tip) without tangling
  broadcast filtering logic into the unicast knob.

This means users defending against Hole-196 can achieve complete coverage
by enabling both knobs on the wireless interface, without needing to overload
`drop_unicast_in_l2_multicast` or change core neighbor learning behavior.

This also means [PATCH net v5] (which dropped IP changes and strictly filtered
non-GARP replies) is architecturally aligned. We can document this dual-knob
recommendation in ip-sysctl.rst so administrators know how to fully secure
shared wireless links.

Julian, Johannes — what do you think about this unified direction?

Best regards,
Star Chang

  parent reply	other threads:[~2026-11-02  7:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 15:05 [PATCH net v3] " Star Chang
2026-10-27  1:56 ` [PATCH net v4] " Star Chang
2026-10-27 12:16   ` Julian Anastasov
2026-10-28  6:16     ` Star Chang
2026-10-28 15:22       ` Julian Anastasov
2026-10-29  9:02         ` Star Chang
2026-10-30  5:20           ` Julian Anastasov
2026-10-30 22:21             ` Johannes Berg
2026-10-30  3:07         ` Star Chang
     [not found]           ` <65cf2338-7bb4-3151-f3b1-ef171bb5723b@ssi.bg>
2026-10-30  6:52             ` Star Chang
2026-10-30 18:46               ` Julian Anastasov
     [not found]             ` <c2780bb291244cf32c1dbda63f0dcf594d22da30.camel@sipsolutions.net>
2026-11-02  7:05               ` Star Chang [this message]
2026-11-02 21:27                 ` Julian Anastasov
2026-10-29 16:56   ` netdev-bot+sashiko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261102070552.3516567-1-starchang@google.com \
    --to=starchang@google.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=ja@ssi.bg \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=wangroger@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®