Not scored
regulator: raa215300: Fix resource leak in case of error
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: regulador: raa215300: Corrige la fuga de recursos en caso de error La función clk_register_clkdev() asigna memoria al llamar a vclkdev_alloc() y esta memoria no es liberada en la ruta de error. De manera similar, los recursos asignados por clk_register_fixed_rate() no son liberados en la ruta de error. Soluciona estos problemas utilizando devm_clk_hw_register_fixed_rate() y devm_clk_hw_register_clkdev(). Después de esto, la variable estática clk ya no es necesaria. Reemplázala con la variable local hw en probe() y elimina la llamada a clk_unregister_fixed_rate() de raa215300_rtc_unregister_device().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54228 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54228 changed 2026-10-28 | Public domain |