CVE-2026-98285: net: bridge: vlan: fix bugs caused by switchdev deletion errors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
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.
The Linux kernel CVE team has assigned CVE-2026-98285 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.3 with commit bf361ad38165939049a2649b1a0078f3268d4bd1 and fixed in 7.2.8 with commit ed3ea86db736a30bebf49b947c42730e8451bcd2 Issue introduced in 4.3 with commit bf361ad38165939049a2649b1a0078f3268d4bd1 and fixed in 7.3-rc4 with commit 2842ce397dd09882530b42f7fdb0c855767eb24e
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-98285
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:
net/bridge/br_vlan.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/ed3ea86db736a30bebf49b947c42730e8451bcd2 https://git.kernel.org/stable/c/2842ce397dd09882530b42f7fdb0c855767eb24e