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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-12-30T12:11:20.884Z
- Modified: 2026-10-28T19:10:00.193Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7bce16630837c705f72e8fd53a11ae8c236236f4 before 2bf2d2ac9e67184dc99275875a6452ca6e3027ff; from 7bce16630837c705f72e8fd53a11ae8c236236f4 before e21ac64e669e960688e79bf5babeed63132dac8a; 6.5 (not affected: before 6.5; from 6.5.4 up to 6.5.*; from 6.6 up to *)

## References

- <https://git.kernel.org/stable/c/2bf2d2ac9e67184dc99275875a6452ca6e3027ff>
- <https://git.kernel.org/stable/c/e21ac64e669e960688e79bf5babeed63132dac8a>

## Sources

- CVE List: [CVE-2023-54228](https://www.cve.org/CVERecord?id=CVE-2023-54228), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54228](https://nvd.nist.gov/vuln/detail/CVE-2023-54228), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-54228 · Whole record: https://cve.day/CVE-2023-54228.json · Rebuilt by cve.day 2026-11-25T22:58:35.231Z
