
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49350 affects the Linux kernel's MDIO (Management Data Input/Output) bus initialization functionality. The vulnerability stems from an improper combination of EXPORT_SYMBOL and __init annotations in the mdio_bus_init() function. The issue was discovered when modpost warnings were fixed, revealing this long-standing problem in the Linux kernel (Kernel Git).
The vulnerability occurs because the mdio_bus_init() function was marked with both EXPORT_SYMBOL and __init annotations. This is problematic as the __init annotation causes the code to be placed in the .init.text section, which is freed after initialization, while EXPORT_SYMBOL makes the function available to loadable modules. When modules attempt to access this freed memory, it can result in a kernel panic (Kernel Git).
If exploited, this vulnerability can lead to kernel panic conditions when modules attempt to access the freed memory space of the mdio_bus_init() function. This could result in system instability and potential denial of service (Kernel Git).
The vulnerability requires a specific condition where a loadable module attempts to use the mdio_bus_init() function after system initialization. The risk is somewhat mitigated as the only in-tree call-site in drivers/net/phy/phy_device.c is never compiled as a module since CONFIG_PHYLIB is boolean (Kernel Git).
The issue was resolved by removing the EXPORT_SYMBOL annotation while keeping the __init annotation, as this was deemed the most appropriate solution given that the only in-tree usage is never compiled as a module. This fix prevents modules from attempting to access the freed memory space (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."