CVE-2025-21924: net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error
In the Linux kernel, the following vulnerability has been resolved:
net: hns3: make sure ptp clock is unregister and freed if hclgeptpgetcycle returns an error
During the initialization of ptp, hclgeptpgetcycle might return an error and returned directly without unregister clock and free it. To avoid that, call hclgeptpdestroyclock to unregist and free clock if hclgeptpgetcycle failed.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-21924?
CVE-2025-21924 has been classified as a medium severity vulnerability.
How do I fix CVE-2025-21924?
To fix CVE-2025-21924, ensure your Linux kernel is updated to the latest patched version that addresses this vulnerability.
What does CVE-2025-21924 affect?
CVE-2025-21924 affects the Linux kernel and specifically impacts the hns3 network driver.
What happens if hclge_ptp_get_cycle fails in CVE-2025-21924?
If hclge_ptp_get_cycle fails in CVE-2025-21924, the ptp clock may not be unregistered and freed properly, leading to potential resource leaks.
Will CVE-2025-21924 affect system performance?
While CVE-2025-21924 may not directly impact performance, it can lead to system instability due to resource management issues.