CVE-2026-43219

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

published May 6, 2026

CVSS
—
EPSS
0%
Percentile
2.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00128 · 2.2th percentile
Published
2026-05-06T11:28Z
EPSS history
Timeline
  • 06 MAY 11:28Z
    net: cpsw_new: Fix potential unregister of netdev that has not been registered yet
    cvelistv5