CVE-2023-54097
In the Linux kernel, the following vulnerability has been resolved: regulator: stm32-pwr: fix of_iomap leak Smatch reports: drivers/regulator/stm32-pwr.c:166 stm32_pwr_regulator_probe() warn: 'base' from of_iomap() not released on lines: 151,166. In stm32_pwr_regulator_probe(), base is not released when devm_kzalloc() fails to allocate memory or devm_regulator_register() fails to register a new regulator device, which may cause a leak. To fix this issue, replace of_iomap() with devm_platform_ioremap_resource(). devm_platform_ioremap_resource() is a specialized function for platform devices. It allows 'base' to be automatically released whether the probe function succeeds or fails. Besides, use IS_ERR(base) instead of !base as the return value of devm_platform_ioremap_resource() can either be a pointer to the remapped memory or an ERR_PTR() encoded error code if the operation fails.
Affected versions
Linux kernel versions
5.2
and later are affected. Fixed in
5.4.243,
5.10.180,
5.15.111,
6.1.28,
6.2.15,
6.3.2,
6.4
and their respective stable series.
References
The following references provide additional information about CVE-2023-54097 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0ad07e02be0d3f0d554653382ffe53ae4879378d
-
PatchKernel patch commithttps://git.kernel.org/stable/c/824683dbec234a01bd49a0589ee3323594a6f4cf
-
PatchKernel patch commithttps://git.kernel.org/stable/c/ad6481f49fb2c703efa3a929643934f24b666d6a
Frequently asked questions
-
What is CVE-2023-54097?
CVE-2023-54097 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.2 onward and has been patched in 5.4.243, 5.10.180, 5.15.111 and others. CVE-2023-54097 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2023-54097?
Yes — CVE-2023-54097 has been patched. Fixed versions include 5.4.243, 5.10.180, 5.15.111 and others. If you are running Linux kernel 5.2 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-54097 actively exploited?
No — CVE-2023-54097 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.