CVE-2022-50624

net: netsec: fix error handling in netsec_register_mdio()

State
Published
Severity
Not scored
Published
Dec 8, 2025
Updated
May 11, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 533dd11a12f698c571a12271b20f235792d3e148 to before 728884b22d83148a330b23f9472f1e118b589211Affected
  • 533dd11a12f698c571a12271b20f235792d3e148 to before fda2d07234a21be4d71ebfe97a45f499726902d6Affected
  • 533dd11a12f698c571a12271b20f235792d3e148 to before 62f0a08e82a6312efd7df7f595c0b11d4ffde610Affected
  • 533dd11a12f698c571a12271b20f235792d3e148 to before 1e0bee973ef6fc3c1e3acb014515eaea37c8fa17Affected
  • 533dd11a12f698c571a12271b20f235792d3e148 to before 846e677daf51220d7975c61a20e440a88473951eAffected
  • 533dd11a12f698c571a12271b20f235792d3e148 to before 94423589689124e8cd145b38a1034be7f25835b2Affected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 4.19.264 through 4.19.*Not affected
  • 5.4.223 through 5.4.*Not affected
  • 5.10.153 through 5.10.*Not affected
  • 5.15.77 through 5.15.*Not affected
  • 6.0.7 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.