Skip to contentSkip to conversation

CVE-2026-97435: net: dsa: sja1105: flower: reject cross-chip redirect

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:

net: dsa: sja1105: flower: reject cross-chip redirect

dsa_port_from_netdev() may return a valid port from a different switch chip. Programming another chip's port index into the local hardware causes redirection to the wrong port, or an out-of-bounds access if the index exceeds the local chip's port count.

Apply a minimal fix that adds a check to catch this case and adjusts the extack message. When cls->common.skip_sw is not set, the operation could instead redirect to the upstream port and let the software or upstream switch(es) handle the forward, but that is not addressed here.

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

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

	Fixed in 6.12.111 with commit c999cc39775381b68ed66eae57c1425452672c0f
	Fixed in 6.18.53 with commit abd7511e12b231798332afa04ed9bee9e84f9445
	Fixed in 7.2 with commit cfa5274a5dc2a23b957da5dc806d2ac0c7a66af0

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

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/dsa/sja1105/sja1105_flower.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/c999cc39775381b68ed66eae57c1425452672c0f
	https://git.kernel.org/stable/c/abd7511e12b231798332afa04ed9bee9e84f9445
	https://git.kernel.org/stable/c/cfa5274a5dc2a23b957da5dc806d2ac0c7a66af0