bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98285

—unknown

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

net: bridge: vlan: fix bugs caused by switchdev deletion errors

Allowing switchdev to prevent vlan deletion and error out in __vlan_del could cause multiple different issues - inconsistent state, memory leaks when flushing, NULL pointer dereference on bridge error when flushing. It doesn't make sense to allow it to stop __vlan_del, so log the error and continue with software vlan deletion. This is also consistent with 8021q behaviour.

Published 2026-10-06NVD

References 2
Review Av26.10.0x86_64Not exposedFable 5.2 · medium confidence · 2026-11-19

The unfixed code is in this build: __vlan_del() in net/bridge/br_vlan.c still aborts the software VLAN deletion when switchdev returns an error, and no applied patch touches that file.

The faulty path only runs when a switchdev driver handles the VLAN delete and returns a real error. With no driver handling it, the call returns -EOPNOTSUPP, which the bridge treats as success. The only switchdev driver compiled into the x86_64 kernel is rocker, which is a QEMU-only emulated switch and not the default QEMU network mode (IX_QEMU_NET_USER is).

Bridge VLAN deletion itself is ordinary operator configuration through the bridge vlans YANG container, but on real x86_64 hardware or virtio/e1000 NICs it cannot hit the error branch. Reaching it requires running the image under QEMU with a rocker device and having the emulated switch fail a VLAN removal; it is a local configuration path over netlink, not triggered by network traffic.

Evidence 11
  1. `__vlan_del()` still does `goto out` when `__vlan_vid_del()` or `br_switchdev_port_vlan_del()` returns an error, skipping the software deletion. This is the pre-fix behaviour the CVE describes.

    output/build/linux-6.18.60/net/bridge/br_vlan.c:401-410

  2. `__vlan_vid_del()` still returns the switchdev error (only `-EOPNOTSUPP` is mapped to 0).

    output/build/linux-6.18.60/net/bridge/br_vlan.c:144-156

  3. The only bridge patches applied are four multicast/MDB ones; a search of `patches/linux/6.18.60` finds no patch that modifies `net/bridge/br_vlan.c`.

    output/build/linux-6.18.60/.applied_patches_list:6-9

  4. `CONFIG_BRIDGE=y`, `CONFIG_BRIDGE_VLAN_FILTERING=y` and `CONFIG_NET_SWITCHDEV=y`, so the affected code is built in.

    output/build/linux-6.18.60/.config:1426-1428,1537

  5. `net/bridge/br_vlan.o` and `net/bridge/br_switchdev.o` were compiled.

    output/objects.txt:23559-23560

  6. `switchdev_port_obj_notify()` returns `-EOPNOTSUPP` when no driver handles the object, so without a switchdev driver the error branch in `__vlan_del()` is never taken.

    output/build/linux-6.18.60/net/switchdev/switchdev.c:236-244

  7. `rocker` is the only switchdev driver compiled. A search for the other drivers that handle `SWITCHDEV_PORT_OBJ_DEL` (DSA, mlxsw, mlx5, prestera, sparx5, lan966x, ocelot, cpsw, dpaa2, rswitch, ice) finds no objects.

    output/objects.txt:22182-22184

  8. `CONFIG_NET_DSA`, `CONFIG_MLX5_CORE` and `CONFIG_MLXSW_CORE` are not set; `CONFIG_ROCKER=y`.

    output/build/linux-6.18.60/.config:1431,2253-2254,2308

  9. `ofdpa_port_vlan_del()` can return non-`EOPNOTSUPP` errors to the bridge, so with a `rocker` device present the vulnerable branch is reachable.

    output/build/linux-6.18.60/drivers/net/ethernet/rocker/rocker_ofdpa.c:2198-2210

  10. `rocker` is an optional QEMU network mode (`IX_QEMU_NET_ROCKER`); the default is `IX_QEMU_NET_USER`. It exists only as an emulated device in the QEMU run scripts (`board/common/qemu/itb/run.sh:263-274`).

    board/common/qemu/ddi/Config.in.in:260-271

  11. confd issues `bridge vlan del vid ...` and sets `vlan_filtering 1` from the bridge `vlans` YANG container, so `__vlan_del()` itself is called from normal management operations; only the error branch needs a switchdev driver.

    src/confd/src/if-bridge.c:302-306,320-326

Version and patches

The tree is plain 6.18.60 (output/build/linux-6.18.60/Makefile:2-4) and the fix is not in the source: __vlan_del() still bails out on switchdev errors. None of the 139 applied patches touches net/bridge/br_vlan.c. I could not consult the upstream affected range or fixed stable version (no network access), so the version that first carries the fix is not confirmed here.

Recommendation

No urgent backport is needed for the x86_64 image; document as not exposed on shipped x86_64 targets, and pick up the fix with the next 6.18.y stable bump that includes it.

If rocker-based QEMU setups are used for testing or by customers, expect that a failed hardware VLAN delete there can leave inconsistent bridge state or crash on bridge teardown.

Review the aarch64 and other board builds separately: they enable DSA and sparx5 switchdev drivers, where this error path is reachable on real hardware through ordinary bridge VLAN configuration.

Open questions

The upstream fix commits and affected version range could not be fetched, so the fixed 6.18.y release is unknown.

I did not check whether any out-of-tree kernel module package in the image registers a switchdev blocking notifier; output/objects.txt shows none among the kernel's own switchdev drivers.

Whether the x86_64 image is ever shipped or supported in QEMU/GNS3 setups using rocker is a product decision the tree does not answer; if it is, the exposure would be operator-reachable through the bridge vlans YANG configuration.

My first combined shell command was blocked by the sandbox; I reran the same checks as separate read-only commands, so nothing was left out.

Members of Kernel Kit decide. Sign in if you are one.