{"id":"CVE-2025-21924","summary":"net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error","details":"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.","modified":"2026-04-02T12:45:17.143541Z","published":"2025-04-01T15:40:56.841Z","related":["SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20206-1","SUSE-SU-2025:20270-1","SUSE-SU-2025:20283-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21924.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/21dba813d9821687a7f9aff576798ba21a859a32"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33244e98aa9503585e585335fe2ceb4492630949"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9cfc43c0e6e6a31122b4008d763a2960c206aa2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7365eab39831487a84e63a9638209b68dc54008"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7d8d4529984e2d4a72a6d552fb886233e8e83cb"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21924.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21924"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8373cd38a8888549ace7c7617163a2e826970a92"},{"fixed":"b7d8d4529984e2d4a72a6d552fb886233e8e83cb"},{"fixed":"33244e98aa9503585e585335fe2ceb4492630949"},{"fixed":"2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37"},{"fixed":"9cfc43c0e6e6a31122b4008d763a2960c206aa2d"},{"fixed":"21dba813d9821687a7f9aff576798ba21a859a32"},{"fixed":"b7365eab39831487a84e63a9638209b68dc54008"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21924.json"}}],"schema_version":"1.7.5"}