Skip to content
Heist/ feed
Back to feed
UnratedFix available

regulator: raa215300: Fix resource leak in case of error

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: regulator: raa215300: Fix resource leak in case of error The clk_register_clkdev() allocates memory by calling vclkdev_alloc() and this memory is not freed in the error path. Similarly, resources allocated by clk_register_fixed_rate() are not freed in the error path. Fix these issues by using devm_clk_hw_register_fixed_rate() and devm_clk_hw_register_clkdev(). After this, the static variable clk is not needed. Replace it with local variable hw in probe() and drop calling clk_unregister_fixed_rate() from raa215300_rtc_unregister_device().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.5.4
CVEs
CVE-2023-54228
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 11:34 UTC · Revision 1

Source evidence

regulator: raa215300: Fix resource leak in case of error

core-osv · Original source

Published 30 Dec 2025, 12:11 UTC

In the Linux kernel, the following vulnerability has been resolved: regulator: raa215300: Fix resource leak in case of error The clk_register_clkdev() allocates memory by calling vclkdev_alloc() and this memory is not freed in the error path. Similarly, resources allocated by clk_register_fixed_rate() are not freed in the error path. Fix these issues by using devm_clk_hw_register_fixed_rate() and devm_clk_hw_register_clkdev(). After this, the static variable clk is not needed. Replace it with local variable hw in probe() and drop calling clk_unregister_fixed_rate() from raa215300_rtc_unregister_device().

osv:CVE-2023-54228

Kernel

Fixed versions: 6.5.4

Complete source record
{
  "id": "28779564fc2b3a4228ef7ffcd0386e5ef4024ed44cd578987832a3484cca4ba0",
  "url": "https://osv.dev/vulnerability/CVE-2023-54228",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "regulator: raa215300: Fix resource leak in case of error",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: regulator: raa215300: Fix resource leak in case of error The clk_register_clkdev() allocates memory by calling vclkdev_alloc() and this memory is not freed in the error path. Similarly, resources allocated by clk_register_fixed_rate() are not freed in the error path. Fix these issues by using devm_clk_hw_register_fixed_rate() and devm_clk_hw_register_clkdev(). After this, the static variable clk is not needed. Replace it with local variable hw in probe() and drop calling clk_unregister_fixed_rate() from raa215300_rtc_unregister_device().",
    "evidence": "osv:CVE-2023-54228",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.5.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-54228",
      "aliases": [
        "CVE-2023-54228"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7bce16630837c705f72e8fd53a11ae8c236236f4"
                },
                {
                  "fixed": "2bf2d2ac9e67184dc99275875a6452ca6e3027ff"
                },
                {
                  "fixed": "e21ac64e669e960688e79bf5babeed63132dac8a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54228.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.5.0"
                },
                {
                  "fixed": "6.5.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54228.json"
          }
        }
      ],
      "modified": "2026-10-30T02:30:34.272977684Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2bf2d2ac9e67184dc99275875a6452ca6e3027ff",
        "https://git.kernel.org/stable/c/e21ac64e669e960688e79bf5babeed63132dac8a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54228.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-54228",
        "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/2023/54xxx/CVE-2023-54228.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-54228",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 502067,
  "published_at": "2025-12-30T12:11:20.884+00:00"
}