# CVE-2025-21924: net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-04-01T15:40:56.841Z
- Modified: 2026-10-15T22:18:11.927Z
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8373cd38a8888549ace7c7617163a2e826970a92 before b7d8d4529984e2d4a72a6d552fb886233e8e83cb; from 8373cd38a8888549ace7c7617163a2e826970a92 before 33244e98aa9503585e585335fe2ceb4492630949; from 8373cd38a8888549ace7c7617163a2e826970a92 before 2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37; from 8373cd38a8888549ace7c7617163a2e826970a92 before 9cfc43c0e6e6a31122b4008d763a2960c206aa2d; from 8373cd38a8888549ace7c7617163a2e826970a92 before 21dba813d9821687a7f9aff576798ba21a859a32; from 8373cd38a8888549ace7c7617163a2e826970a92 before b7365eab39831487a84e63a9638209b68dc54008; 5.14 (not affected: before 5.14; from 5.15.179 up to 5.15.*; from 6.1.131 up to 6.1.*; from 6.6.83 up to 6.6.*; from 6.12.19 up to 6.12.*; from 6.13.7 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.14.1 before 5.15.179; from 5.16 before 6.1.131; from 6.2 before 6.6.83; from 6.7 before 6.12.19; from 6.13 before 6.13.7; 5.14; 6.14

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b7d8d4529984e2d4a72a6d552fb886233e8e83cb> (patch)
- <https://git.kernel.org/stable/c/33244e98aa9503585e585335fe2ceb4492630949> (patch)
- <https://git.kernel.org/stable/c/2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37> (patch)
- <https://git.kernel.org/stable/c/9cfc43c0e6e6a31122b4008d763a2960c206aa2d> (patch)
- <https://git.kernel.org/stable/c/21dba813d9821687a7f9aff576798ba21a859a32> (patch)
- <https://git.kernel.org/stable/c/b7365eab39831487a84e63a9638209b68dc54008> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-21924](https://www.cve.org/CVERecord?id=CVE-2025-21924), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-21924](https://nvd.nist.gov/vuln/detail/CVE-2025-21924), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-21924 · Whole record: https://cve.day/CVE-2025-21924.json · Rebuilt by cve.day 2026-11-25T22:58:55.889Z
