Skip to content
Heist/ feed
Back to feed
UnratedFix available

clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate() devm_clk_get_optional_enabled_with_rate() registers its cleanup action before setting the clock rate. If setting the rate fails, it attempts to disable and unprepare a clock that was never enabled. This issue was spotted while reviewing "rust: clk: add devres-managed clks" [1]. Register the cleanup action only after successfully preparing and enabling the clock. [1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.110, 6.18.52, 7.2.6
CVEs
CVE-2026-90147
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:38 UTC · Revision 1

Source evidence

clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()

core-osv · Original source

Published 17 Sept 2026, 16:06 UTC

In the Linux kernel, the following vulnerability has been resolved: clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate() devm_clk_get_optional_enabled_with_rate() registers its cleanup action before setting the clock rate. If setting the rate fails, it attempts to disable and unprepare a clock that was never enabled. This issue was spotted while reviewing "rust: clk: add devres-managed clks" [1]. Register the cleanup action only after successfully preparing and enabling the clock. [1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com

osv:CVE-2026-90147

Kernel

Fixed versions: 6.12.110, 6.18.52, 7.2.6

Complete source record
{
  "id": "5df7ee7889c7f3044594b37222023575e460e643c1efa6f196ad5389bc9a6c32",
  "url": "https://osv.dev/vulnerability/CVE-2026-90147",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate() devm_clk_get_optional_enabled_with_rate() registers its cleanup action before setting the clock rate. If setting the rate fails, it attempts to disable and unprepare a clock that was never enabled. This issue was spotted while reviewing \"rust: clk: add devres-managed clks\" [1]. Register the cleanup action only after successfully preparing and enabling the clock. [1]: https://lore.kernel.org/rust-for-linux/20260706-clk-type-state-v5-3-67c5f326a16c@collabora.com",
    "evidence": "osv:CVE-2026-90147",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.110",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.52",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-90147",
      "aliases": [
        "CVE-2026-90147"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9934a1bd45b2b03f6d1204a6ae2780d3b009799f"
                },
                {
                  "fixed": "9a365f41fe0f227ef5a269e240233bd0bffc66c9"
                },
                {
                  "fixed": "9d4843f1051259854f724e9cdc5b9eac56327037"
                },
                {
                  "fixed": "647157fecb42b72d930e7b7d0bfbc5f2db9a858a"
                },
                {
                  "fixed": "0d4d262c1664365e17e0a5ba2ab79f4db484b44e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90147.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.110"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.52"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90147.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.949496984Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0d4d262c1664365e17e0a5ba2ab79f4db484b44e",
        "https://git.kernel.org/stable/c/647157fecb42b72d930e7b7d0bfbc5f2db9a858a",
        "https://git.kernel.org/stable/c/9a365f41fe0f227ef5a269e240233bd0bffc66c9",
        "https://git.kernel.org/stable/c/9d4843f1051259854f724e9cdc5b9eac56327037",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90147.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-90147",
        "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/2026/90xxx/CVE-2026-90147.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-90147",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521856,
  "published_at": "2026-09-17T16:06:42.342+00:00"
}