CVE-2025-21924

net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error

MEDIUM
5.5
CVSS Score
Published: April 1, 2025 at 03:40 PM UTC
Updated: October 15, 2026 at 10:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error During the initialization of ptp, hclge_ptp_get_cycle might return an error and returned directly without unregister clock and free it. To avoid that, call hclge_ptp_destroy_clock to unregist and free clock if hclge_ptp_get_cycle failed.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.14.1 ≤ v < 5.15.1795.16 ≤ v < 6.1.1316.13 ≤ v < 6.13.76.2 ≤ v < 6.6.836.7 ≤ v < 6.12.195.145.14 rc45.14 rc55.14 rc65.14 rc76.146.14 rc16.14 rc26.14 rc36.14 rc46.14 rc58373cd38a8888549ace7c7617163a2e826970a92
Vendor states this is fixed in 21dba813d9821687a7f9aff576798ba21a859a32 (fixed)
Vendor states this is fixed in 2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37 (fixed)
Vendor states this is fixed in 33244e98aa9503585e585335fe2ceb4492630949 (fixed)
Vendor states this is fixed in 9cfc43c0e6e6a31122b4008d763a2960c206aa2d (fixed)
Vendor states this is fixed in b7365eab39831487a84e63a9638209b68dc54008 (fixed)
Vendor states this is fixed in b7d8d4529984e2d4a72a6d552fb886233e8e83cb (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.179 (unaffected)
Vendor states this is fixed in 6.1.131 (unaffected)
Vendor states this is fixed in 6.12.19 (unaffected)
Vendor states this is fixed in 6.13.7 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.83 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/21dba813d9821687a7f9aff576798ba21a859a32
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/33244e98aa9503585e585335fe2ceb4492630949
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9cfc43c0e6e6a31122b4008d763a2960c206aa2d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b7365eab39831487a84e63a9638209b68dc54008
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b7d8d4529984e2d4a72a6d552fb886233e8e83cb
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-459

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card