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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-12-08T01:16:38.357Z
- Modified: 2026-11-11T23:10:00.263Z
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/728884b22d83148a330b23f9472f1e118b589211>
- <https://git.kernel.org/stable/c/fda2d07234a21be4d71ebfe97a45f499726902d6>
- <https://git.kernel.org/stable/c/62f0a08e82a6312efd7df7f595c0b11d4ffde610>
- <https://git.kernel.org/stable/c/1e0bee973ef6fc3c1e3acb014515eaea37c8fa17>
- <https://git.kernel.org/stable/c/846e677daf51220d7975c61a20e440a88473951e>
- <https://git.kernel.org/stable/c/94423589689124e8cd145b38a1034be7f25835b2>

## Sources

- CVE List: [CVE-2022-50624](https://www.cve.org/CVERecord?id=CVE-2022-50624), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50624](https://nvd.nist.gov/vuln/detail/CVE-2022-50624), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2022-50624 · Whole record: https://cve.day/CVE-2022-50624.json · Rebuilt by cve.day 2026-11-25T22:58:21.291Z
