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

CVE-2026-98285: Linux Kernel Bridge VLAN Use-After-Free

CVE-2026-98285 is a use-after-free vulnerability in the Linux kernel bridge VLAN component that can cause memory corruption and system instability. This article covers technical details, affected versions, and mitigation strategies.

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-98285 Overview

CVE-2026-98285 affects the Linux kernel bridge subsystem. The flaw resides in the VLAN deletion path (__vlan_del) within net/bridge/. When a switchdev driver returned an error during VLAN deletion, the bridge aborted the operation and left the kernel in an inconsistent state. This behavior triggered memory leaks during VLAN flushing and a NULL pointer dereference when bridge errors occurred during flush. The upstream fix changes the semantics so switchdev errors are logged, and software VLAN deletion proceeds unconditionally. The patched behavior aligns with the existing 8021q module.

Critical Impact

Local triggering of inconsistent bridge state can lead to kernel memory leaks and NULL pointer dereference, resulting in kernel crashes on affected systems.

Affected Products

  • Linux kernel bridge subsystem (net/bridge/br_vlan.c)
  • Systems using bridge VLAN filtering with switchdev-capable network drivers
  • Distributions shipping unpatched upstream Linux kernel versions

Discovery Timeline

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

Technical Details for CVE-2026-98285

Vulnerability Analysis

The Linux bridge driver supports VLAN filtering and offloads VLAN configuration to hardware through the switchdev framework. When userspace requests VLAN removal, __vlan_del notifies the switchdev driver before completing the software-side deletion. The pre-patch implementation treated a switchdev error as a hard failure and returned early from __vlan_del.

This early return left the VLAN entry present in the software bridge even when the caller assumed deletion succeeded. During subsequent flush operations, the bridge iterated over VLAN entries whose state no longer matched expectations. The mismatch produced two concrete failure modes: memory associated with partially released structures was never freed, and dereferencing a bridge pointer during error handling of a flush could hit a NULL value.

Root Cause

The root cause is improper error handling in __vlan_del. Letting a hardware offload driver veto a software deletion violates the invariant that flush must always complete. The fix removes the veto, logs the switchdev error, and continues the software path. This matches the error handling model already used by the 8021q VLAN module.

Attack Vector

Exploitation requires local privileges sufficient to configure bridge VLANs, typically CAP_NET_ADMIN. An actor able to induce a switchdev driver error during VLAN deletion can trigger inconsistent state. Repeated operations can leak kernel memory, and a flush under error conditions can crash the kernel through a NULL pointer dereference. No network-based remote vector is documented.

The vulnerability is a logic flaw in error handling rather than a memory corruption primitive. Technical details are documented in the upstream commits Kernel Git Commit 2842ce3 and Kernel Git Commit ed3ea86.

Detection Methods for CVE-2026-98285

Indicators of Compromise

  • Kernel log entries referencing bridge VLAN deletion failures from switchdev drivers
  • BUG: or Oops: kernel traces originating in br_vlan or __vlan_del call paths
  • Unexpected kernel memory growth on hosts running bridges with offloaded VLAN filtering

Detection Strategies

  • Monitor dmesg and journald for repeated bridge VLAN deletion errors tied to switchdev notifications
  • Audit systems running bridge vlan commands against interfaces backed by switchdev drivers
  • Correlate kernel panic traces with recent ip link or bridge vlan del activity

Monitoring Recommendations

  • Centralize kernel logs and alert on __vlan_del, br_vlan_flush, or NULL pointer dereference signatures in bridge code
  • Track kernel memory metrics on network nodes using bridge VLAN offload to detect slow leaks
  • Review change-management records for bridge and VLAN configuration changes on affected hosts

How to Mitigate CVE-2026-98285

Immediate Actions Required

  • Apply vendor kernel updates that include commits 2842ce3 and ed3ea86 from the stable tree
  • Inventory hosts running bridge VLAN filtering with switchdev-capable NICs or ASICs
  • Restrict CAP_NET_ADMIN to trusted administrators and automation accounts

Patch Information

The fix is published in the upstream stable kernel tree. Reference the commits Kernel Git Commit 2842ce3 and Kernel Git Commit ed3ea86. Rebuild or install distribution kernels that include these commits and reboot affected systems.

Workarounds

  • Disable bridge VLAN offload to switchdev drivers where operationally feasible until patching
  • Avoid flushing VLAN configurations on bridges experiencing switchdev driver errors
  • Limit container and virtualization workloads granted network administration capabilities on unpatched hosts
bash
# Verify running kernel version and check for applied fix
uname -r

# Check whether bridge VLAN filtering is enabled on a given bridge
ip -d link show dev br0 | grep vlan_filtering

# Review bridge VLAN state before and after configuration changes
bridge vlan show

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.