net: cpsw_new: unregister devlink on port registration failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.111, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: net: cpsw_new: unregister devlink on port registration failure cpsw_probe() registers devlink before registering the CPSW ports. If cpsw_register_ports() fails, the error path only unregisters the notifiers and then releases the lower level resources. It does not undo the successful cpsw_register_devlink() call, leaving the devlink instance and its parameters registered after probe has failed. Add a devlink cleanup label for the path where devlink registration has already succeeded, and use it when port registration fails.
Timeline
- CVE published
- First seen by cve.now
- Record last updated
Affected versions
- Linux Linux
From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in b020390b4ef39adc40c800301042baf812280da1; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in 5a5ac0defdd42e566f1c871272370b6a3a8eef5c; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in 43d4af5c5331ea739a49cb1097d41e502ed91ec4; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in 8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in 2bcf21ede6b097ca96cb1f7679761acca6510555; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in 0a44945b0d3422f5d81b49c97e293f3e21a8c585; From ed3525eda4c4983fb8509e488de0a351788041ba · fixed in b64f763b607426ac97e44b114f0b8844ac3b86dd
- Linux Linux
5.5
- KernelLinux
fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53
References 7
git.kernel.org
- stable/c/b020390b4ef39adc40c800301042baf812280da1
- stable/c/5a5ac0defdd42e566f1c871272370b6a3a8eef5c
- stable/c/43d4af5c5331ea739a49cb1097d41e502ed91ec4
- stable/c/8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0
- stable/c/2bcf21ede6b097ca96cb1f7679761acca6510555
- stable/c/0a44945b0d3422f5d81b49c97e293f3e21a8c585
- stable/c/b64f763b607426ac97e44b114f0b8844ac3b86dd