Skip to content
Heist/ feed
Back to feed
UnratedFix available

clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree() 'p_clk' is an array allocated just before the for loop for all clk that need to be registered. It is incremented at each loop iteration. If a clk_register() call fails, 'p_clk' may point to something different from what should be freed. The best we can do, is to avoid this wrong release of memory.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2024-27039
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 11:02 UTC · Revision 1

Source evidence

clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()

core-osv · Original source

Published 1 May 2024, 12:53 UTC

In the Linux kernel, the following vulnerability has been resolved: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree() 'p_clk' is an array allocated just before the for loop for all clk that need to be registered. It is incremented at each loop iteration. If a clk_register() call fails, 'p_clk' may point to something different from what should be freed. The best we can do, is to avoid this wrong release of memory.

osv:CVE-2024-27039

Kernel

Fixed versions: 5.15.153, 6.1.83, 6.6.23, 6.7.11, 6.8.2

Complete source record
{
  "id": "9d2445fbeadf7f84ff4f3e25ac818564bfa6bf6d3e6aab2cc2a0ab1acddde465",
  "url": "https://osv.dev/vulnerability/CVE-2024-27039",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree() 'p_clk' is an array allocated just before the for loop for all clk that need to be registered. It is incremented at each loop iteration. If a clk_register() call fails, 'p_clk' may point to something different from what should be freed. The best we can do, is to avoid this wrong release of memory.",
    "evidence": "osv:CVE-2024-27039",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.153",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.83",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.8.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-27039",
      "aliases": [
        "CVE-2024-27039"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6c81966107dc0caa5d2ebedbcebb5f10d865064d"
                },
                {
                  "fixed": "3f8445f1c746fda180a7f75372ed06b24e9cefe2"
                },
                {
                  "fixed": "e0b0d1c46a2ce1e46b79d004a7270fdef872e097"
                },
                {
                  "fixed": "95d1f1228c1bb54803ae57525b76db60e99b37e4"
                },
                {
                  "fixed": "2cc572e0085ebd4b662b74a0f43222bc00df9a00"
                },
                {
                  "fixed": "d575765b1b62e8bdb00af11caa1aabeb01763d9f"
                },
                {
                  "fixed": "64c6a38136b74a2f18c42199830975edd9fbc379"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27039.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.14.0"
                },
                {
                  "fixed": "5.15.153"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.83"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27039.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.966821088Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00",
        "https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2",
        "https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379",
        "https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4",
        "https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f",
        "https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27039.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27039",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27039.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27039",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 511686,
  "published_at": "2024-05-01T12:53:57.126+00:00"
}