net: cpsw_new: Fix potential unregister of netdev that has not been registered yet
Summary
| CVE | CVE-2026-43219 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-06 12:16:41 UTC |
| Updated | 2026-07-04 12:16:56 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Problem Types: NVD-CWE-noinfo
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba da8e1623a3028e1d8c75eec7898d94c6f17dce40 git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba d31a12cee10bbc12b4b523a4709fd1fdee8b7d0f git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 23acc565186ee27e788408cbd81b92730b6aaa3a git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 67cca9df4d17f2c824655d31195b2e75334ae286 git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 14645799ad5253a028cf662e2f9cd18a68f74b31 git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 29739ec197ed66535bc0b86f14ab66c5f4512138 git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 349c4cac6f54a81fc107589771f88136a2b20415 git | Not specified |
| CNA | Linux | Linux | affected ed3525eda4c4983fb8509e488de0a351788041ba 9d724b34fbe13b71865ad0906a4be97571f19cf5 git | Not specified |
| CNA | Linux | Linux | affected 5.5 | Not specified |
| CNA | Linux | Linux | unaffected 5.5 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.260 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.210 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.176 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.143 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.93 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.16 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19.6 6.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/23acc565186ee27e788408cbd81b92730b6aaa3a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/67cca9df4d17f2c824655d31195b2e75334ae286 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/9d724b34fbe13b71865ad0906a4be97571f19cf5 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/d31a12cee10bbc12b4b523a4709fd1fdee8b7d0f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/da8e1623a3028e1d8c75eec7898d94c6f17dce40 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/14645799ad5253a028cf662e2f9cd18a68f74b31 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/349c4cac6f54a81fc107589771f88136a2b20415 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/29739ec197ed66535bc0b86f14ab66c5f4512138 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.