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:20.884Z
Modified
2025-12-30T20:31:15.499190Z
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 clkregisterclkdev() allocates memory by calling vclkdevalloc() and this memory is not freed in the error path. Similarly, resources allocated by clkregisterfixedrate() are not freed in the error path.

Fix these issues by using devmclkhwregisterfixedrate() and devmclkhwregister_clkdev().

After this, the static variable clk is not needed. Replace it with  local variable hw in probe() and drop calling clkunregisterfixedrate() from raa215300rtcunregisterdevice().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54228.json",
    "cna_assigner": "Linux"
}
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

Affected versions

v6.*
v6.4
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.5.1
v6.5.2
v6.5.3

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"