[PATCH net 0/2] bridge: mcast: Fix a possible use-after-free when removing a bridge port
Ido Schimmel <[email protected]> Sun, 17 May 2026 15:11:20 +0300
| Newsgroups | dev.linux.lists.bridge,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
Patch #1 fixes a possible use-after-free when removing a bridge port.
Patch #2 adds a test case that triggers the problem.
In net-next we can:
1. Add DEBUG_NET_WARN_ON_ONCE() when a port multicast context is
de-initialized while enabled.
2. When de-initializing a port multicast context, synchronously shutdown
all the timers that were initialized when the context was initialized.
Ido Schimmel (2):
bridge: mcast: Fix a possible use-after-free when removing a bridge
port
selftests: bridge_vlan_mcast: Test toggling of multicast snooping
net/bridge/br_multicast.c | 22 ++++++++++----
.../net/forwarding/bridge_vlan_mcast.sh | 30 ++++++++++++++++++-
2 files changed, 46 insertions(+), 6 deletions(-)
--
2.54.0