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

Summary

CVECVE-2026-43219
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-06 12:16:41 UTC
Updated2026-07-04 12:16:56 UTC
DescriptionIn 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
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS: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)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report