Menu

Star on GitHub · 3.2k

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: 'ba…

Published Dec 24, 2025EPSS 0.21%

Overview

CVE-2023-54097 is a known-severity vulnerability. It was published on December 24, 2025.

Technical description

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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2023-54097?

CVE-2023-54097 is a known-severity vulnerability. It was published on December 24, 2025.

How severe is CVE-2023-54097?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2023-54097?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2023-54097?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2023-54097 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.