Linux Kernel NULL Pointer Dereference Vulnerability in Clock Management

Vulnerability

A vulnerability in the Linux kernel's clock management system can lead to a NULL pointer dereference. This issue arises because the 'dev' field of any registered 'clk_core' structure can be NULL. Although not officially documented, this is supported by the common use of 'clk_register' and 'clk_hw_register' with a NULL device pointer. The 'of_clk_hw_register()' function also passes a NULL device pointer, creating the potential for a NULL pointer dereference when 'clk_hw_get_clk()' is called on such a 'clk_hw' structure. The vulnerability has been addressed by adding a test for this scenario and using NULL as the 'dev_id' when the device pointer is NULL.

Impact

Exploitation of this vulnerability can lead to a NULL pointer dereference, causing a crash or undefined behavior in the kernel.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
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.