{"id":"CVE-2025-21924","aliases":["CVE-2025-21924"],"related":[],"kind":"vulnerability","state":"published","title":"net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error\n\nDuring the initialization of ptp, hclge_ptp_get_cycle might return an error\nand returned directly without unregister clock and free it. To avoid that,\ncall hclge_ptp_destroy_clock to unregist and free clock if\nhclge_ptp_get_cycle failed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error\n\nDuring the initialization of ptp, hclge_ptp_get_cycle might return an error\nand returned directly without unregister clock and free it. To avoid that,\ncall hclge_ptp_destroy_clock to unregist and free clock if\nhclge_ptp_get_cycle failed.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-04-01T15:40:56.841Z","modified":"2026-10-15T22:18:11.927Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-459"],"affected":[{"ranges":[{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"b7d8d4529984e2d4a72a6d552fb886233e8e83cb","status":"affected"},{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"33244e98aa9503585e585335fe2ceb4492630949","status":"affected"},{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37","status":"affected"},{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"9cfc43c0e6e6a31122b4008d763a2960c206aa2d","status":"affected"},{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"21dba813d9821687a7f9aff576798ba21a859a32","status":"affected"},{"type":"git","introduced":"8373cd38a8888549ace7c7617163a2e826970a92","fixed":"b7365eab39831487a84e63a9638209b68dc54008","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.131","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.83","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.19","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.7","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14.1","fixed":"5.15.179"},{"status":"affected","introduced":"5.16","fixed":"6.1.131"},{"status":"affected","introduced":"6.2","fixed":"6.6.83"},{"status":"affected","introduced":"6.7","fixed":"6.12.19"},{"status":"affected","introduced":"6.13","fixed":"6.13.7"},{"status":"affected","version":"5.14"},{"status":"affected","version":"5.14"},{"status":"affected","version":"5.14"},{"status":"affected","version":"5.14"},{"status":"affected","version":"5.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b7d8d4529984e2d4a72a6d552fb886233e8e83cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33244e98aa9503585e585335fe2ceb4492630949","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9cfc43c0e6e6a31122b4008d763a2960c206aa2d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21dba813d9821687a7f9aff576798ba21a859a32","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7365eab39831487a84e63a9638209b68dc54008","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:43:44.162Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21924","url":"https://www.cve.org/CVERecord?id=CVE-2025-21924","licence":"CVE Terms of Use","modified":"2026-10-15T21:51:55.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21924","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21924","licence":"Public domain","modified":"2026-10-15T22:18:11.927Z"}],"updatedAt":"2026-11-25T22:58:55.889Z","epss":{"score":0.00244,"percentile":0.16737,"date":"2026-12-01T12:00:22.000Z"}}