Skip to contentSkip to conversation

CVE-2026-98304: net: bcmgenet: restore the hardware filters on open

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: bcmgenet: restore the hardware filters on open

bcmgenet_hfb_init() runs INIT_LIST_HEAD() on priv->rxnfc_list, which drops every rule off the list, and bcmgenet_open() calls it on each ifup. Every rule the user configured is silently lost:

  # ethtool -N eth0 flow-type ether dst $MAC action 0
  Added rule with ID 0
  # ethtool -n eth0 | grep -c Filter:
  1
  # ip link set eth0 down && ip link set eth0 up
  # ethtool -n eth0 | grep -c Filter:
  0

Initialise the lists once at probe and restore the rules on open, as bcmgenet_resume() already does.

The Linux kernel CVE team has assigned CVE-2026-98304 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.8 with commit 3e370952287c55e5fd240cb8bb41ef8acff8829d and fixed in 6.18.54 with commit 56db7ec462d6a2b886e299ad835109c089606969
	Issue introduced in 5.8 with commit 3e370952287c55e5fd240cb8bb41ef8acff8829d and fixed in 7.2.8 with commit 906140955c8debde65afe12e594e04c49a61b0d9
	Issue introduced in 5.8 with commit 3e370952287c55e5fd240cb8bb41ef8acff8829d and fixed in 7.3-rc4 with commit 23ca4ddc4fce2c233a49e9fd34d4b5b02bd7324e

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98304

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/broadcom/genet/bcmgenet.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/56db7ec462d6a2b886e299ad835109c089606969
	https://git.kernel.org/stable/c/906140955c8debde65afe12e594e04c49a61b0d9
	https://git.kernel.org/stable/c/23ca4ddc4fce2c233a49e9fd34d4b5b02bd7324e