CVE-2026-98909: net: cpsw_new: unregister devlink on port registration failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: cpsw_new: unregister devlink on port registration failure
cpsw_probe() registers devlink before registering the CPSW ports.
If cpsw_register_ports() fails, the error path only unregisters the notifiers and then releases the lower level resources. It does not undo the successful cpsw_register_devlink() call, leaving the devlink instance and its parameters registered after probe has failed.
Add a devlink cleanup label for the path where devlink registration has already succeeded, and use it when port registration fails.
The Linux kernel CVE team has assigned CVE-2026-98909 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.271 with commit b020390b4ef39adc40c800301042baf812280da1 Fixed in 5.15.222 with commit 5a5ac0defdd42e566f1c871272370b6a3a8eef5c Fixed in 6.1.189 with commit 43d4af5c5331ea739a49cb1097d41e502ed91ec4 Fixed in 6.6.158 with commit 8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0 Fixed in 6.12.111 with commit 2bcf21ede6b097ca96cb1f7679761acca6510555 Fixed in 6.18.53 with commit 0a44945b0d3422f5d81b49c97e293f3e21a8c585 Fixed in 7.2 with commit b64f763b607426ac97e44b114f0b8844ac3b86dd
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-98909
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/ti/cpsw_new.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/b020390b4ef39adc40c800301042baf812280da1 https://git.kernel.org/stable/c/5a5ac0defdd42e566f1c871272370b6a3a8eef5c https://git.kernel.org/stable/c/43d4af5c5331ea739a49cb1097d41e502ed91ec4 https://git.kernel.org/stable/c/8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0 https://git.kernel.org/stable/c/2bcf21ede6b097ca96cb1f7679761acca6510555 https://git.kernel.org/stable/c/0a44945b0d3422f5d81b49c97e293f3e21a8c585 https://git.kernel.org/stable/c/b64f763b607426ac97e44b114f0b8844ac3b86dd