net: cpsw_new: unregister devlink on port registration failure
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 5.5.0, < 5.10.271→ 5.10.271 ≥ 5.11.0, < 5.15.222→ 5.15.222 ≥ 5.16.0, < 6.1.189→ 6.1.189 ≥ 6.2.0, < 6.6.158→ 6.6.158 ≥ 6.7.0, < 6.12.111→ 6.12.111 ≥ 6.13.0, < 6.18.53→ 6.18.53 |
5.10.271 5.15.222 6.1.189 6.6.158 6.12.111 6.18.53 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-98909 linux-lts Fix available
- Debian DEBIAN-CVE-2026-98909 linux Fix available
- Ubuntu UBUNTU-CVE-2026-98909 linux-vmware, linux-riscv-7.0, linux-riscv-6.8 +54 more Fix available
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com