Linux Kernel Improves Error Handling in IMX8MP Clock Driver

Vulnerability

A vulnerability related to memory management has been addressed in the Linux kernel's IMX8MP clock driver. The issue arose from the use of 'of_iomap()' and 'kzalloc()' for memory allocation, which could lead to potential memory leaks when the device or driver was removed. The updated code replaces these functions with 'devm_of_iomap()' and 'devm_kzalloc()', allowing for automatic memory management. Additionally, the error handling has been enhanced by checking the return value of 'of_clk_add_hw_provider' and unregistering hardware clocks if an error occurs, making the driver more robust.

Impact

The vulnerability could lead to memory leaks, where allocated memory is not properly released, potentially causing increased memory usage and degradation of system performance over time.

Added: Oct 22, 2025, 2:58 PM
Updated: Oct 22, 2025, 2:58 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
3.5
remediation
7.7
relevance
0.8
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.