net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 12 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-459 — Incomplete Cleanup
References
- https://git.kernel.org/stable/c/b7d8d4529984e2d4a72a6d552fb886233e8e83cb
- https://git.kernel.org/stable/c/33244e98aa9503585e585335fe2ceb4492630949
- https://git.kernel.org/stable/c/2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37
- https://git.kernel.org/stable/c/9cfc43c0e6e6a31122b4008d763a2960c206aa2d
- https://git.kernel.org/stable/c/21dba813d9821687a7f9aff576798ba21a859a32
- https://git.kernel.org/stable/c/b7365eab39831487a84e63a9638209b68dc54008
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2025-9397
- GCVE · GCVE-0-2025-21924
CERT-FR advisories
- CERTFR-2025-AVI-1057 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0969 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0892 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0859 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0843 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0828 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0589 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0559 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0529 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0509 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0465 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0463 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0449 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0333 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.14.1 < 5.15.179cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 6.1.131cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.2 < 6.6.83cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.7 < 6.12.19cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.13 < 6.13.7cpe:2.3:o:linux:linux_kernel:5.14:-:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.14:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.14:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.14:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.14:rc7:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 8373cd38a8888549ace7c7617163a2e826970a92 < b7d8d4529984e2d4a72a6d552fb886233e8e83cb ; affected 8373cd38a8888549ace7c7617163a2e826970a92 < 33244e98aa9503585e585335fe2ceb4492630949 ; affected 8373cd38a8888549ace7c7617163a2e826970a92 < 2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37 ; affected 8373cd38a8888549ace7c7617163a2e826970a92 < 9cfc43c0e6e6a31122b4008d763a2960c206aa2d ; affected 8373cd38a8888549ace7c7617163a2e826970a92 < 21dba813d9821687a7f9aff576798ba21a859a32 ; affected 8373cd38a8888549ace7c7617163a2e826970a92 < b7365eab39831487a84e63a9638209b68dc54008 |
| Linux · Linux | affected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.179 ≤ 5.15.* ; unaffected 6.1.131 ≤ 6.1.* ; unaffected 6.6.83 ≤ 6.6.* ; unaffected 6.12.19 ≤ 6.12.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |