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