7.8high
net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: hns3: Asegúrese de que el reloj ptp se anule y libere si hclge_ptp_get_cycle devuelve un error. Durante la inicialización de ptp, hclge_ptp_get_cycle podría devolver un error y regresar directamente sin anular el registro ni liberarlo. Para evitarlo, llame a hclge_ptp_destroy_clock para anular el registro y liberar el reloj si hclge_ptp_get_cycle falla.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21924 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-21924 changed 2026-10-15 | Public domain |