{
  "id": "CVE-2025-21924",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21924",
  "published_at": "2025-04-01T15:40:56.841Z",
  "title": "net: hns3: make sure ptp clock is unregister and freed if hclge_ptp_get_cycle returns an error",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-459",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe: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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c b7d8d4529984e2d4a72a6d552fb886233e8e83cb",
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c 33244e98aa9503585e585335fe2ceb4492630949",
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c 2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37",
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c 9cfc43c0e6e6a31122b4008d763a2960c206aa2d",
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c 21dba813d9821687a7f9aff576798ba21a859a32",
          "\u003e= 8373cd38a8888549ace7c7617163a2e826970a92, \u003c b7365eab39831487a84e63a9638209b68dc54008"
        ],
        "fixed_in": [
          "b7d8d4529984e2d4a72a6d552fb886233e8e83cb",
          "33244e98aa9503585e585335fe2ceb4492630949",
          "2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37",
          "9cfc43c0e6e6a31122b4008d763a2960c206aa2d",
          "21dba813d9821687a7f9aff576798ba21a859a32",
          "b7365eab39831487a84e63a9638209b68dc54008"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.14"
        ],
        "fixed_in": [
          "0",
          "5.15.179",
          "6.1.131",
          "6.6.83",
          "6.12.19",
          "6.13.7",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b7d8d4529984e2d4a72a6d552fb886233e8e83cb or 33244e98aa9503585e585335fe2ceb4492630949 or 2c04e507f3a5c5dc6e2b9ab37d8cdedee1ef1a37 or 9cfc43c0e6e6a31122b4008d763a2960c206aa2d or 21dba813d9821687a7f9aff576798ba21a859a32 or b7365eab39831487a84e63a9638209b68dc54008 or later.",
      "Upgrade Linux to 0 or 5.15.179 or 6.1.131 or 6.6.83 or 6.12.19 or 6.13.7 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
