# CVE-2026-43219: net: cpsw_new: Fix potential unregister of netdev that has not been registered yet

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-06T11:28:20.243Z
- Modified: 2026-11-11T20:10:00.273Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ed3525eda4c4983fb8509e488de0a351788041ba before da8e1623a3028e1d8c75eec7898d94c6f17dce40; from ed3525eda4c4983fb8509e488de0a351788041ba before d31a12cee10bbc12b4b523a4709fd1fdee8b7d0f; from ed3525eda4c4983fb8509e488de0a351788041ba before 23acc565186ee27e788408cbd81b92730b6aaa3a; from ed3525eda4c4983fb8509e488de0a351788041ba before 67cca9df4d17f2c824655d31195b2e75334ae286; from ed3525eda4c4983fb8509e488de0a351788041ba before 14645799ad5253a028cf662e2f9cd18a68f74b31; from ed3525eda4c4983fb8509e488de0a351788041ba before 29739ec197ed66535bc0b86f14ab66c5f4512138; from ed3525eda4c4983fb8509e488de0a351788041ba before 349c4cac6f54a81fc107589771f88136a2b20415; from ed3525eda4c4983fb8509e488de0a351788041ba before 9d724b34fbe13b71865ad0906a4be97571f19cf5; 5.5 (not affected: before 5.5; from 5.10.260 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.5 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/da8e1623a3028e1d8c75eec7898d94c6f17dce40>
- <https://git.kernel.org/stable/c/d31a12cee10bbc12b4b523a4709fd1fdee8b7d0f>
- <https://git.kernel.org/stable/c/23acc565186ee27e788408cbd81b92730b6aaa3a>
- <https://git.kernel.org/stable/c/67cca9df4d17f2c824655d31195b2e75334ae286>
- <https://git.kernel.org/stable/c/14645799ad5253a028cf662e2f9cd18a68f74b31>
- <https://git.kernel.org/stable/c/29739ec197ed66535bc0b86f14ab66c5f4512138> (patch)
- <https://git.kernel.org/stable/c/349c4cac6f54a81fc107589771f88136a2b20415> (patch)
- <https://git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4be97571f19cf5> (patch)

## Sources

- CVE List: [CVE-2026-43219](https://www.cve.org/CVERecord?id=CVE-2026-43219), CVE Terms of Use, modified 2026-07-04
- NVD: [CVE-2026-43219](https://nvd.nist.gov/vuln/detail/CVE-2026-43219), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43219 · Whole record: https://cve.day/CVE-2026-43219.json · Rebuilt by cve.day 2026-11-25T22:59:20.735Z
