Linux Kernel Hyper-V Clocksource Vulnerability Leading to Kernel Panic

Vulnerability

A vulnerability in the Linux kernel's handling of clocksource initialization for Hyper-V can cause a kernel panic. The issue arises because the initialization function is marked with both __init and EXPORT_SYMBOL annotations. The __init annotation indicates that the function is only needed during initialization and can be discarded afterward, leaving modules unable to access it. Attempting to use a symbol from a freed section can lead to a kernel panic. While the 'modpost' tool used to detect this issue, it had been broken for a decade. After fixing 'modpost' to warn about this problem, it was identified in 'linux-next' builds. The vulnerability could be resolved by either removing the __init annotation or the EXPORT_SYMBOL designation. The author chose to remove EXPORT_SYMBOL, as the only in-tree call site for this function is not compiled as a module.

Impact

Accessing a freed symbol can result in a kernel panic, causing a denial of service by crashing the system.

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
3.1
exploitability
5.3
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.