What’s Vulnerable › Vulnerabilities

CVE-2022-50624: net: netsec: fix error handling in netsec_register_mdio()

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50624 or the next vulnerability affects your stack