CVE-2023-54228 regulator: raa215300: Fix resource leak in case of error

Not scored Published Updated

A resource leak in the Linux kernel regulator driver allows attackers to cause a denial of service by triggering error paths that fail to free memory.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54228?

CVE-2023-54228 is a denial of service vulnerability in Linux, published on 30 Dec 2025.

Official description

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().

Which versions are affected by CVE-2023-54228?

How do I fix CVE-2023-54228?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-54228 being exploited?

There is no known exploitation of CVE-2023-54228 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54228, DEBIAN-CVE-2023-54228, GHSA-q47m-cv74-3xj8, UBUNTU-CVE-2023-54228.

Is CVE-2023-54228 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free