net: cpsw_new: unregister devlink on port registration failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0a44945b0d3422f5d81b49c97e293f3e21a8c585, Kernel 2bcf21ede6b097ca96cb1f7679761acca6510555, Kernel 43d4af5c5331ea739a49cb1097d41e502ed91ec4 and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.5, >=ed3525eda4c4983fb8509e488de0a351788041ba <0a44945b0d3422f5d81b49c97e293f3e21a8c585, >=ed3525eda4c4983fb8509e488de0a351788041ba <2bcf21ede6b097ca96cb1f7679761acca6510555, >=ed3525eda4c4983fb8509e488de0a351788041ba <43d4af5c5331ea739a49cb1097d41e502ed91ec4, >=ed3525eda4c4983fb8509e488de0a351788041ba <5a5ac0defdd42e566f1c871272370b6a3a8eef5c, >=ed3525eda4c4983fb8509e488de0a351788041ba <8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0, >=ed3525eda4c4983fb8509e488de0a351788041ba <b020390b4ef39adc40c800301042baf812280da1, >=ed3525eda4c4983fb8509e488de0a351788041ba <b64f763b607426ac97e44b114f0b8844ac3b86dd | 0a44945b0d3422f5d81b49c97e293f3e21a8c585, 2bcf21ede6b097ca96cb1f7679761acca6510555, 43d4af5c5331ea739a49cb1097d41e502ed91ec4, 5a5ac0defdd42e566f1c871272370b6a3a8eef5c, 8af61d5bd87fd1a3bdc81fe948e7acdc8aa5bcf0, b020390b4ef39adc40c800301042baf812280da1, b64f763b607426ac97e44b114f0b8844ac3b86dd |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket