CVE-2022-49350

net: mdio: unexport __init-annotated mdio_bus_init()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:11 AM UTC
Updated: June 17, 2026 at 05:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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)

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 4.14.2834.12 ≤ v < 4.19.2474.12 ≤ v < 5.10.1224.12 ≤ v < 5.15.474.12 ≤ v < 5.17.154.12 ≤ v < 5.18.44.12 ≤ v < 5.194.12 ≤ v < 5.4.1984.15 ≤ v < 4.19.2474.20 ≤ v < 5.4.1985.11 ≤ v < 5.15.475.16 ≤ v < 5.17.155.18 ≤ v < 5.18.45.5 ≤ v < 5.10.1224.125.19 rc190eff9096c01ba90cdae504a6b95ee87fe2556a3
Vendor states this is fixed in 35b42dce619701f1300fb8498dae82c9bb1f0263 (fixed)
Vendor states this is fixed in 5534bcd7c40299862237c4a8fd9c5031b3db1538 (fixed)
Vendor states this is fixed in 59fa94cddf9eef8d8dae587373eed8b8f4eb11d7 (fixed)
Vendor states this is fixed in 6a90a44d53428a3bf01bd80df9ba78b19959270c (fixed)
Vendor states this is fixed in 7759c3222815b945a94b212bc0c6cdec475cfec2 (fixed)
Vendor states this is fixed in ab64ec2c75683f30ccde9eaaf0761002f901aa12 (fixed)
Vendor states this is fixed in f2f0f8c18b60ca64ff50892ed899cf1c77864755 (fixed)
Vendor states this is fixed in f5c68137f1191ba3fcf6260ec71b30be2e2bf4c3 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 4.14.283 (unaffected)
Vendor states this is fixed in 4.19.247 (unaffected)
Vendor states this is fixed in 5.10.122 (unaffected)
Vendor states this is fixed in 5.15.47 (unaffected)
Vendor states this is fixed in 5.17.15 (unaffected)
Vendor states this is fixed in 5.18.4 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/35b42dce619701f1300fb8498dae82c9bb1f0263
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5534bcd7c40299862237c4a8fd9c5031b3db1538
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/59fa94cddf9eef8d8dae587373eed8b8f4eb11d7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6a90a44d53428a3bf01bd80df9ba78b19959270c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7759c3222815b945a94b212bc0c6cdec475cfec2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ab64ec2c75683f30ccde9eaaf0761002f901aa12
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f2f0f8c18b60ca64ff50892ed899cf1c77864755
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5c68137f1191ba3fcf6260ec71b30be2e2bf4c3

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card