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

CVE-2026-97435: Linux Kernel DSA SJA1105 Privilege Escalation

CVE-2026-97435 is a privilege escalation flaw in Linux kernel DSA SJA1105 that allows improper cross-chip port redirection. This post explains the technical details, affected versions, security impact, and mitigation steps.

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

CVE-2026-97435 is a kernel vulnerability in the Linux Distributed Switch Architecture (DSA) subsystem affecting the NXP sja1105 Ethernet switch driver. The flaw resides in the tc-flower offload path, where dsa_port_from_netdev() may return a port belonging to a different switch chip in a multi-chip topology. The driver programmed that foreign port index directly into local hardware, causing traffic redirection to the wrong port or an out-of-bounds access when the index exceeded the local chip's port count.

Critical Impact

Misconfigured flower redirect rules on multi-chip sja1105 deployments can trigger out-of-bounds memory access in the kernel or silently misroute network traffic between switch domains.

Affected Products

  • Linux kernel versions containing the sja1105 DSA driver prior to the fix commits
  • Systems using NXP SJA1105 automotive/industrial Ethernet switches in cross-chip DSA topologies
  • Embedded platforms deploying tc-flower hardware offload on sja1105 ports

Discovery Timeline

  • 2026-09-24 - CVE-2026-97435 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97435

Vulnerability Analysis

The vulnerability lives in the sja1105 DSA driver's flower classifier offload handler. DSA supports cross-chip topologies in which multiple switch chips are daisy-chained and the kernel exposes each physical port as a net_device. When userspace installs a tc-flower rule with a redirect action, the driver calls dsa_port_from_netdev() to resolve the destination netdev into a DSA port structure.

That helper does not restrict its result to the local switch chip. In multi-chip deployments it can return a port owned by a sibling chip. The sja1105 driver previously consumed the returned port index as if it belonged to the local hardware and wrote it into the switch's forwarding configuration. The patch adds a validation check and refines the extended ACK message returned to userspace.

Root Cause

The root cause is missing scope validation of a cross-chip identifier. The driver treated any valid DSA port returned by the helper as addressable by local hardware. No bounds check compared the port index against the local chip's port count, and no ownership check verified that the destination port belonged to the same dsa_switch instance performing the offload.

Attack Vector

Exploitation requires CAP_NET_ADMIN to install tc-flower rules on a DSA slave interface. On systems using multi-chip sja1105 configurations, an administrator or compromised privileged process can craft a redirect action targeting a port on a sibling switch chip. The driver then programs an out-of-range port index into hardware, which can cause an out-of-bounds access in the kernel's port arrays or redirect packets to an unintended egress port. The condition is not reachable from unprivileged userspace or over the network.

See the upstream fix commits for implementation details: kernel.org commit abd7511e, kernel.org commit c999cc39, and kernel.org commit cfa5274a.

Detection Methods for CVE-2026-97435

Indicators of Compromise

  • Kernel oops, warning, or KASAN out-of-bounds reports originating in sja1105 flower offload functions.
  • Unexpected packet forwarding behavior on DSA slave interfaces in multi-chip sja1105 topologies.
  • tc command sequences installing flower filters with action mirred or redirect targeting netdevs on a different switch chip.

Detection Strategies

  • Audit running kernel versions on embedded and industrial Linux hosts against the stable kernel commits that contain the fix.
  • Review tc-flower rule inventories on DSA interfaces and flag any redirect action whose target netdev resolves to a different dsa_switch.
  • Enable KASAN on test builds to surface out-of-bounds port index writes in the sja1105 driver.

Monitoring Recommendations

  • Collect dmesg output centrally and alert on sja1105 driver warnings, extack rejection messages, and KASAN reports.
  • Monitor /sys/class/net/*/phys_switch_id to inventory DSA topologies and identify multi-chip deployments that require the patch.
  • Track configuration changes to tc qdiscs and filters on DSA slave interfaces as part of change management.

How to Mitigate CVE-2026-97435

Immediate Actions Required

  • Apply the stable kernel updates containing the three upstream fix commits to any device running the sja1105 driver.
  • Inventory industrial, automotive, and networking appliances that use NXP SJA1105 switches to confirm patch coverage.
  • Restrict CAP_NET_ADMIN on affected hosts so only trusted operators can install tc-flower offload rules.

Patch Information

The fix adds a validation check in the sja1105 flower offload path that rejects redirect actions whose destination port does not belong to the local switch chip, and it updates the extack message surfaced to userspace. The change is distributed across three kernel.org commits: abd7511e12b2, c999cc397753, and cfa5274a5dc2. Rebuild and reboot into a kernel that includes these commits.

Workarounds

  • Avoid installing tc-flower redirect or mirred actions on sja1105 DSA slave interfaces until the patched kernel is deployed.
  • In multi-chip sja1105 deployments, constrain flower offload rules so the destination netdev always resides on the same switch chip as the ingress port.
  • Where hardware offload is not required, use software-only tc rules by setting skip_hw on the filter.
bash
# Remove any existing flower redirect rules from sja1105 DSA interfaces
tc filter show dev swp0 ingress
tc filter del dev swp0 ingress

# Install software-only rules until the patched kernel is deployed
tc filter add dev swp0 ingress protocol ip flower skip_hw \
    dst_ip 192.0.2.10 action mirred egress redirect dev swp1

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.