Skip to main content
Vulnerability Database/CVE-2026-98304

CVE-2026-98304: Linux Kernel bcmgenet Privilege Escalation

CVE-2026-98304 is a privilege escalation vulnerability in the Linux kernel bcmgenet network driver that causes hardware filter rules to be silently lost on interface restart. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98304 Overview

CVE-2026-98304 affects the Broadcom GENET Ethernet driver (bcmgenet) in the Linux kernel. The flaw causes user-configured hardware receive filters to be silently discarded whenever a network interface is brought down and back up. The function bcmgenet_hfb_init() calls INIT_LIST_HEAD() on priv->rxnfc_list, which detaches every rule from the list. Because bcmgenet_open() invokes this routine on each ifup event, any ethtool ntuple rules the administrator previously programmed are lost. The maintainers resolved the issue by initializing the list once at probe time and restoring the rules on open, mirroring the behavior already implemented in bcmgenet_resume().

Critical Impact

Hardware receive filters (ethtool ntuple rules) on Broadcom GENET interfaces are silently removed on every interface restart, potentially bypassing filter-based network policies.

Affected Products

  • Linux kernel builds including the Broadcom GENET Ethernet driver (drivers/net/ethernet/broadcom/genet/)
  • Devices using Broadcom GENET controllers such as Raspberry Pi 4/5 and various Broadcom SoC platforms
  • Stable kernel branches prior to the fixes referenced in commits 23ca4dd, 56db7ec, and 9061409

Discovery Timeline

  • 2026-10-06 - CVE-2026-98304 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98304

Vulnerability Analysis

The bcmgenet driver maintains user-defined receive filter rules in the linked list priv->rxnfc_list. These rules are populated through the ethtool -N interface and programmed into the Hardware Filter Block (HFB) of the GENET controller. The defect lies in the lifecycle handling of this list. The initialization helper bcmgenet_hfb_init() unconditionally reinitializes priv->rxnfc_list using INIT_LIST_HEAD(), which overwrites the list head and orphans every attached rule.

Because bcmgenet_open() calls bcmgenet_hfb_init() each time the interface transitions to the up state, the user-visible symptom is deterministic. The reproducer in the upstream commit shows a filter added with ethtool -N eth0, then confirmed present, then lost after ip link set eth0 down followed by ip link set eth0 up. The suspend/resume path bcmgenet_resume() already handled restoration correctly, so the fix aligns the open path with that established behavior.

Root Cause

The root cause is improper state management in a driver initialization routine. Code intended to run once at probe time was placed in a path that executes on every interface open, destroying runtime state. This is a configuration and design flaw rather than a memory-safety issue.

Attack Vector

The issue is a reliability and policy-enforcement defect rather than a direct remote exploit primitive. An unprivileged user or network event that triggers an interface flap removes filtering rules that may have been deployed for traffic steering or network segmentation. Any security control that relies on persistent hardware receive filters on affected Broadcom NICs is bypassed after a link cycle until rules are reprogrammed.

No verified exploitation code is available. The upstream commit message demonstrates the behavior using standard ethtool and ip link commands.

Detection Methods for CVE-2026-98304

Indicators of Compromise

  • Absence of previously configured ethtool -N ntuple rules on a bcmgenet interface after an ifup/ifdown cycle
  • ethtool -n <iface> | grep -c Filter: returning 0 after a link flap on a system where rules were previously programmed
  • Kernel logs showing bcmgenet interface state transitions without corresponding rule restoration messages

Detection Strategies

  • Enumerate the running kernel version against the fix commits 23ca4ddc, 56db7ec4, and 90614095 to confirm presence of the patch
  • Periodically snapshot ethtool -n <iface> output and alert on unexpected rule-count decreases
  • Correlate NetworkManager, systemd-networkd, or carrier-change events with ntuple rule inventories to flag loss events

Monitoring Recommendations

  • Instrument configuration management to assert expected ntuple rule state on bcmgenet interfaces after boot and after link state changes
  • Monitor /sys/class/net/<iface>/operstate transitions and trigger filter validation on return to up
  • Centralize kernel and link-state telemetry to a security data lake to detect systemic filter drift across fleets of Broadcom-based devices

How to Mitigate CVE-2026-98304

Immediate Actions Required

  • Identify Linux hosts using the bcmgenet driver by inspecting lsmod or /sys/class/net/<iface>/device/driver
  • Upgrade to a Linux kernel that includes the upstream fix referenced by commits 23ca4ddc4fce, 56db7ec462d6, and 906140955c8d
  • Reapply any critical ntuple rules after reboot or interface restart until patched kernels are deployed

Patch Information

The fix moves list initialization to the probe path and restores rules on open, aligning bcmgenet_open() with bcmgenet_resume(). Patches are available in the upstream stable tree at Linux Kernel Commit 23ca4dd, Linux Kernel Commit 56db7ec, and Linux Kernel Commit 9061409. Apply the stable kernel update that corresponds to your distribution.

Workarounds

  • Script automatic reapplication of ethtool -N rules on interface up events using udev or NetworkManager dispatcher hooks
  • Avoid unnecessary ifdown/ifup cycles on affected interfaces until the kernel patch is applied
  • Where feasible, enforce receive filtering at an upstream switch or firewall rather than relying solely on NIC hardware filters
bash
# Example udev-triggered restoration of ntuple rules on link up
# /etc/NetworkManager/dispatcher.d/90-restore-ntuple
#!/bin/sh
IFACE="$1"
ACTION="$2"
if [ "$IFACE" = "eth0" ] && [ "$ACTION" = "up" ]; then
    ethtool -N "$IFACE" flow-type ether dst AA:BB:CC:DD:EE:FF action 0
fi

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.