Skip to content
Heist/ feed
Back to feed
UnratedFix available

clk: Fix clk_core_get NULL dereference

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clk_lookups") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.214, 5.15.153, 5.4.273, 6.1.83, 6.6.23, 6.7.11, 6.8.2
CVEs
CVE-2024-27038
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 07:47 UTC · Revision 1

Source evidence

clk: Fix clk_core_get NULL dereference

core-osv · Original source

Published 1 May 2024, 12:53 UTC

In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 ("clk: Look for parents with clkdev based clk_lookups") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL.

osv:CVE-2024-27038

Kernel

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

Complete source record
{
  "id": "00cd44fa8e0b0550d686022ae35fcadb55ecf0bedcd137c28a87f086c5e40b62",
  "url": "https://osv.dev/vulnerability/CVE-2024-27038",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "clk: Fix clk_core_get NULL dereference",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: clk: Fix clk_core_get NULL dereference It is possible for clk_core_get to dereference a NULL in the following sequence: clk_core_get() of_clk_get_hw_from_clkspec() __of_clk_get_hw_from_provider() __clk_get_hw() __clk_get_hw() can return NULL which is dereferenced by clk_core_get() at hw->core. Prior to commit dde4eff47c82 (\"clk: Look for parents with clkdev based clk_lookups\") the check IS_ERR_OR_NULL() was performed which would have caught the NULL. Reading the description of this function it talks about returning NULL but that cannot be so at the moment. Update the function to check for hw before dereferencing it and return NULL if hw is NULL.",
    "evidence": "osv:CVE-2024-27038",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.273",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.214",
            "evidence": "/affected/1/ranges"
          },
          {
            "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-27038",
      "aliases": [
        "CVE-2024-27038"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dde4eff47c82c52a72af333d9e55370eee6d95d6"
                },
                {
                  "fixed": "d7ae7d1265686b55832a445b1db8cdd69738ac07"
                },
                {
                  "fixed": "239174535dba11f7b83de0eaaa27909024f8c185"
                },
                {
                  "fixed": "0efb9ef6fb95384ba631d6819e66f10392aabfa2"
                },
                {
                  "fixed": "a8b2b26fdd011ebe36d68a9a321ca45801685959"
                },
                {
                  "fixed": "a5d9b1aa61b401867b9066d54086b3e4ee91f8ed"
                },
                {
                  "fixed": "c554badcae9c45b737a22d23454170c6020b90e6"
                },
                {
                  "fixed": "6f073b24a9e2becd25ac4505a9780a87e621bb51"
                },
                {
                  "fixed": "e97fe4901e0f59a0bfd524578fe3768f8ca42428"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27038.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.2.0"
                },
                {
                  "fixed": "5.4.273"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.214"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.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-27038.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.361920181Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-265688.html",
        "https://git.kernel.org/stable/c/0efb9ef6fb95384ba631d6819e66f10392aabfa2",
        "https://git.kernel.org/stable/c/239174535dba11f7b83de0eaaa27909024f8c185",
        "https://git.kernel.org/stable/c/6f073b24a9e2becd25ac4505a9780a87e621bb51",
        "https://git.kernel.org/stable/c/a5d9b1aa61b401867b9066d54086b3e4ee91f8ed",
        "https://git.kernel.org/stable/c/a8b2b26fdd011ebe36d68a9a321ca45801685959",
        "https://git.kernel.org/stable/c/c554badcae9c45b737a22d23454170c6020b90e6",
        "https://git.kernel.org/stable/c/d7ae7d1265686b55832a445b1db8cdd69738ac07",
        "https://git.kernel.org/stable/c/e97fe4901e0f59a0bfd524578fe3768f8ca42428",
        "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27038.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-27038",
        "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-27038.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-27038",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 518676,
  "published_at": "2024-05-01T12:53:53.698+00:00"
}