CVE-2023-54097
Memory Leak in Linux Kernel stm32-pwr Regulator Driver
Publication date: 2025-12-24
Last updated on: 2025-12-24
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a memory leak in the Linux kernel's stm32-pwr regulator driver. Specifically, in the function stm32_pwr_regulator_probe(), the 'base' resource obtained via of_iomap() is not properly released if memory allocation (devm_kzalloc()) or regulator registration (devm_regulator_register()) fails. This can cause a resource leak. The fix replaces of_iomap() with devm_platform_ioremap_resource(), which automatically releases the resource regardless of success or failure, and changes error checking to use IS_ERR() for proper error handling.
How can this vulnerability impact me? :
This vulnerability can lead to a resource leak in the Linux kernel when the stm32-pwr regulator driver fails during initialization. Over time, such leaks may cause increased memory usage or resource exhaustion, potentially leading to degraded system performance or instability.
What immediate steps should I take to mitigate this vulnerability?
Update the Linux kernel to a version that includes the fix for the stm32-pwr regulator of_iomap leak vulnerability. The fix involves replacing of_iomap() with devm_platform_ioremap_resource() in the stm32_pwr_regulator_probe() function to ensure proper resource release. Applying the latest kernel patches or updates from your Linux distribution that address this issue is the recommended mitigation.