net: macb: destroy the phylink instance on the probe error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0112aa02c7847314be599d68783d50c7e228a694, Kernel 23b6a44ffea1c54a4232aa86ee470b21422a8cc5, Kernel 7d059f390750152b9bd69df934198651b94fc26d and 3 more.
In the Linux kernel, the following vulnerability has been resolved: net: macb: destroy the phylink instance on the probe error path macb_mii_init() creates a phylink instance on both of its success paths, but the probe unwind frees the netdev without destroying it, so a failing macb_alloc_tieoff() or register_netdev() leaks the instance. Destroy it at err_out_unregister_mdio, which is only reachable once macb_mii_init() has succeeded, so bp->phylink is valid there.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.5, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <0112aa02c7847314be599d68783d50c7e228a694, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <23b6a44ffea1c54a4232aa86ee470b21422a8cc5, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <7d059f390750152b9bd69df934198651b94fc26d, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <8558e3195664113c14a4d8fcf221b3caff41fed1, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <c1de1e7b51ab2531f564b39b51998c3d71caccd7, >=7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 <e92a45b872b035c79acde8dd0da096a72b61ff2f | 0112aa02c7847314be599d68783d50c7e228a694, 23b6a44ffea1c54a4232aa86ee470b21422a8cc5, 7d059f390750152b9bd69df934198651b94fc26d, 8558e3195664113c14a4d8fcf221b3caff41fed1, c1de1e7b51ab2531f564b39b51998c3d71caccd7, e92a45b872b035c79acde8dd0da096a72b61ff2f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket