CVE-2022-50624

net: netsec: fix error handling in netsec_register_mdio()

No CVSS score yet EPSS 0.22%

Published 8 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50624

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50624 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 533dd11a12f698c571a12271b20f235792d3e148, before 728884b22d83148a330b23f9472f1e118b589211
affected from 533dd11a12f698c571a12271b20f235792d3e148, before fda2d07234a21be4d71ebfe97a45f499726902d6
affected from 533dd11a12f698c571a12271b20f235792d3e148, before 62f0a08e82a6312efd7df7f595c0b11d4ffde610
affected from 533dd11a12f698c571a12271b20f235792d3e148, before 1e0bee973ef6fc3c1e3acb014515eaea37c8fa17
affected from 533dd11a12f698c571a12271b20f235792d3e148, before 846e677daf51220d7975c61a20e440a88473951e
affected from 533dd11a12f698c571a12271b20f235792d3e148, before 94423589689124e8cd145b38a1034be7f25835b2
Other versions: unaffected
Linux
affected 4.16
unaffected before 4.16
unaffected from 4.19.264 up to and including 4.19.*
unaffected from 5.4.223 up to and including 5.4.*
unaffected from 5.10.153 up to and including 5.10.*
unaffected from 5.15.77 up to and including 5.15.*
unaffected from 6.0.7 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50624 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50624

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50624
trivy image --scanners vuln IMAGE | grep CVE-2022-50624

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50624 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.