CVE Database›Document archive›CVE-2022-50624

CVE-2022-50624

kernel: net: netsec: fix error handling in netsec_register_mdio()

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · December 8, 2025

Updated · June 30, 2026

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.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified