CVE-2026-43219

net: cpsw_new: Fix potential unregister of netdev that has not been registered yet

State
Published
Severity
Not scored
Published
May 6, 2026
Updated
Jul 4, 2026
Reserved
May 1, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ed3525eda4c4983fb8509e488de0a351788041ba to before da8e1623a3028e1d8c75eec7898d94c6f17dce40Affected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before d31a12cee10bbc12b4b523a4709fd1fdee8b7d0fAffected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 23acc565186ee27e788408cbd81b92730b6aaa3aAffected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 67cca9df4d17f2c824655d31195b2e75334ae286Affected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 14645799ad5253a028cf662e2f9cd18a68f74b31Affected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 29739ec197ed66535bc0b86f14ab66c5f4512138Affected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 349c4cac6f54a81fc107589771f88136a2b20415Affected
  • ed3525eda4c4983fb8509e488de0a351788041ba to before 9d724b34fbe13b71865ad0906a4be97571f19cf5Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.260 through 5.10.*Not affected
  • 5.15.210 through 5.15.*Not affected
  • 6.1.176 through 6.1.*Not affected
  • 6.6.143 through 6.6.*Not affected
  • 6.12.93 through 6.12.*Not affected
  • 6.18.16 through 6.18.*Not affected
  • 6.19.6 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.