CVE-2022-49350

net: mdio: unexport __init-annotated mdio_bus_init()

No CVSS score yet EPSS 0.28%

Published 26 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49350

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-49350 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: mdio: unexport __init-annotated mdio_bus_init()

EXPORT_SYMBOL and __init is a bad combination because the .init.text section is freed up after the initialization. Hence, modules cannot use symbols annotated __init. The access to a freed symbol may end up with kernel panic.

modpost used to detect it, but it has been broken for a decade.

Recently, I fixed modpost so it started to warn it again, then this showed up in linux-next builds.

There are two ways to fix it:

- Remove __init - Remove EXPORT_SYMBOL

I chose the latter for this case because the only in-tree call-site, drivers/net/phy/phy_device.c is never compiled as modular. (CONFIG_PHYLIB is boolean)

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before ab64ec2c75683f30ccde9eaaf0761002f901aa12
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before 5534bcd7c40299862237c4a8fd9c5031b3db1538
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before 6a90a44d53428a3bf01bd80df9ba78b19959270c
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before 7759c3222815b945a94b212bc0c6cdec475cfec2
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before 59fa94cddf9eef8d8dae587373eed8b8f4eb11d7
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before f5c68137f1191ba3fcf6260ec71b30be2e2bf4c3
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before f2f0f8c18b60ca64ff50892ed899cf1c77864755
affected from 90eff9096c01ba90cdae504a6b95ee87fe2556a3, before 35b42dce619701f1300fb8498dae82c9bb1f0263
Other versions: unaffected
Linux
affected 4.12
unaffected before 4.12
unaffected from 4.14.283 up to and including 4.14.*
unaffected from 4.19.247 up to and including 4.19.*
unaffected from 5.4.198 up to and including 5.4.*
unaffected from 5.10.122 up to and including 5.10.*
unaffected from 5.15.47 up to and including 5.15.*
unaffected from 5.17.15 up to and including 5.17.*
unaffected from 5.18.4 up to and including 5.18.*
unaffected 5.19 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-49350 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49350

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-49350
trivy image --scanners vuln IMAGE | grep CVE-2022-49350

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