CVE-2023-54228

Source
https://cve.org/CVERecord?id=CVE-2023-54228
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54228.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-54228
Downstream
Published
2025-12-30T12:11:20Z
Modified
2026-08-12T03:51:29Z
Summary
regulator: raa215300: Fix resource leak in case of error
Details

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54228.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7bce16630837c705f72e8fd53a11ae8c236236f4
Fixed
2bf2d2ac9e67184dc99275875a6452ca6e3027ff
Fixed
e21ac64e669e960688e79bf5babeed63132dac8a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54228.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.5.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54228.json"