Not scored
net: netsec: fix error handling in netsec_register_mdio()
- Severity
- Not scored
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: netsec: fix error handling in netsec_register_mdio() If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 533dd11a12f698c571a12271b20f235792d3e148 before 728884b22d83148a330b23f9472f1e118b589211, from 533dd11a12f698c571a12271b20f235792d3e148 before fda2d07234a21be4d71ebfe97a45f499726902d6, from 533dd11a12f698c571a12271b20f235792d3e148 before 62f0a08e82a6312efd7df7f595c0b11d4ffde610, from 533dd11a12f698c571a12271b20f235792d3e148 before 1e0bee973ef6fc3c1e3acb014515eaea37c8fa17, from 533dd11a12f698c571a12271b20f235792d3e148 before 846e677daf51220d7975c61a20e440a88473951e, from 533dd11a12f698c571a12271b20f235792d3e148 before 94423589689124e8cd145b38a1034be7f25835b2, 4.16 Not affected: before 4.16, from 4.19.264 up to 4.19.*, from 5.4.223 up to 5.4.*, from 5.10.153 up to 5.10.*, from 5.15.77 up to 5.15.*, from 6.0.7 up to 6.0.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: netsec: fix error handling in netsec_register_mdio() If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: netsec: corregir el manejo de errores en netsec_register_mdio() Si phy_device_register() falla, phy_device_free() debe ser llamada para disminuir el contador de referencias, de modo que la memoria del dispositivo phy y el nombre del dispositivo puedan ser liberados en la función de callback. Si get_phy_device() falla, mdiobus_unregister() debe ser llamada, o causará una advertencia en mdiobus_free() y se producirá una fuga de kobject.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50624 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50624 changed 2026-11-11 | Public domain |