GHSA-86c9-4w26-qf4cMediumCVSS 5.5
In the Linux kernel, the following vulnerability has been resolved: net: cpsw_new: Fix potential...
🔗 CVE IDs covered (1)
📋 Description
In the Linux kernel, the following vulnerability has been resolved:
net: cpsw_new: Fix potential unregister of netdev that has not been registered yet
If an error occurs during register_netdev() for the first MAC in cpsw_register_ports(), even though cpsw->slaves[0].ndev is set to NULL, cpsw->slaves[1].ndev would remain unchanged. This could later cause cpsw_unregister_ports() to attempt unregistering the second MAC. To address this, add a check for ndev->reg_state before calling unregister_netdev(). With this change, setting cpsw->slaves[i].ndev to NULL becomes unnecessary and can be removed accordingly.
🔗 References (6)
- https://nvd.nist.gov/vuln/detail/CVE-2026-43219
- https://git.kernel.org/stable/c/29739ec197ed66535bc0b86f14ab66c5f4512138
- https://git.kernel.org/stable/c/349c4cac6f54a81fc107589771f88136a2b20415
- https://git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4be97571f19cf5
- https://git.kernel.org/stable/c/14645799ad5253a028cf662e2f9cd18a68f74b31
- https://github.com/advisories/GHSA-86c9-4w26-qf4c