Skip to contentSkip to conversation

CVE-2026-97436: dpaa2-switch: rework FDB management on the bridge leave path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

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

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

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

dpaa2-switch: rework FDB management on the bridge leave path

On bridge leave, the dpaa2_switch_port_set_fdb() function always allocates a new FDB for the port which is becoming standalone. In case no FDB is found, then the port leaving a bridge will continue to use the current one.

The above logic does not cover the case in which there are multiple bridges which have ports from the same DPSW instance. In this case, when the last port leaves bridge #1, it finds an unused FDB to switch to, but the old FDB is not marked as unused. Since the number of FDBs is equal to the number of DPSW interfaces, this will eventually lead to multiple ports sharing the same FDB.

Fix this by changing how we are managing the FDBs on the leave path. Instead of directly allocating a new FDB, first verify if the current port is the last one to leave a bridge. If this is the case, then continue to use the current FDB and only allocate another FDB if there are other ports remaining in the bridge.

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

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

	Fixed in 6.12.111 with commit abea361a11e4e48695ea149652ef5d3f308b6a49
	Fixed in 6.18.53 with commit 5adbc4d02d7df8bd7aa02c21874f7a582a576b55
	Fixed in 7.2 with commit efc1d92eacf03afa6f4d53bf7120e059b6f961f2

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-97436

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/freescale/dpaa2/dpaa2-switch.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/abea361a11e4e48695ea149652ef5d3f308b6a49
	https://git.kernel.org/stable/c/5adbc4d02d7df8bd7aa02c21874f7a582a576b55
	https://git.kernel.org/stable/c/efc1d92eacf03afa6f4d53bf7120e059b6f961f2