CVE-2026-97434: dpaa2-switch: fix handling of NAPI on the remove path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dpaa2-switch: fix handling of NAPI on the remove path
All the NAPI instances for a DPSW device are attached to the first switch port's net_device but shared by all ports. The NAPI instances get disabled only once the last port goes down.
This causes an issue on the .remove() path where each port is unregistered and freed one at a time, causing the NAPI instances to be deleted even though they are not disabled.
In order to avoid this, split up the unregister_netdev() calls from the free_netdev() so that we make sure all ports go down before we attempt a deletion of NAPI instances. Also, make the netif_napi_del() explicit as it is on the .probe() path.
The Linux kernel CVE team has assigned CVE-2026-97434 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 569df157eb874cb3b50554d73b89f31599397b42 Fixed in 6.18.53 with commit 6518f87771c8833e587bd9881346fa759651c2ae Fixed in 7.2 with commit e23d7c8c1d4ba435c457d7ffb2669175ec819b07
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-97434
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/569df157eb874cb3b50554d73b89f31599397b42 https://git.kernel.org/stable/c/6518f87771c8833e587bd9881346fa759651c2ae https://git.kernel.org/stable/c/e23d7c8c1d4ba435c457d7ffb2669175ec819b07