CVE-2022-49350
MEDIUMLinux Kernel <=5.18.3 - Use of Uninitialized Resource via mdio_bus_init()
Title source: llmDescription
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)
References (8)
Core 8
Core References
Scores
CVSS v3
5.5
EPSS
0.0027
EPSS Percentile
18.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-908
Status
published
Products (27)
linux/Kernel
4.12.0 - 4.14.283linux
linux/Kernel
4.15.0 - 4.19.247linux
linux/Kernel
4.20.0 - 5.4.198linux
linux/Kernel
5.11.0 - 5.15.47linux
linux/Kernel
5.16.0 - 5.17.15linux
linux/Kernel
5.18.0 - 5.18.4linux
linux/Kernel
5.5.0 - 5.10.122linux
Linux/Linux
< 4.12
Linux/Linux
4.12
Linux/Linux
4.14.283 - 4.14.*
... and 17 more
Published
Feb 26, 2025
Tracked Since
Feb 18, 2026