CVE-2023-54097

regulator: stm32-pwr: fix of_iomap leak

N/A
Published: December 24, 2025 at 01:06 PM UTC
Updated: June 17, 2026 at 06:46 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.2 ≤ v < 5.10.1805.2 ≤ v < 5.15.1115.2 ≤ v < 5.4.2435.2 ≤ v < 6.1.285.2 ≤ v < 6.2.155.2 ≤ v < 6.3.25.2 ≤ v < 6.45.2dc62f951a6a8490bcccc7b6de36cd85bd57be740
Vendor states this is fixed in 0ad07e02be0d3f0d554653382ffe53ae4879378d (fixed)
Vendor states this is fixed in 824683dbec234a01bd49a0589ee3323594a6f4cf (fixed)
Vendor states this is fixed in ad6481f49fb2c703efa3a929643934f24b666d6a (fixed)
Vendor states this is fixed in c091bb49b3233307c7af73dae888f0799752af3d (fixed)
Vendor states this is fixed in c4a413e56d16a2ae84e6d8992f215c4dcc7fac20 (fixed)
Vendor states this is fixed in dfce9bb3517a78507cf96f9b83948d0b81338afa (fixed)
Vendor states this is fixed in f25994f7a9ad53eb756bc4869497c3ebe281ad5e (fixed)
Vendor states this is fixed in 5.10.180 (unaffected)
Vendor states this is fixed in 5.15.111 (unaffected)
Vendor states this is fixed in 5.2 (unaffected)
Vendor states this is fixed in 5.4.243 (unaffected)
Vendor states this is fixed in 6.1.28 (unaffected)
Vendor states this is fixed in 6.2.15 (unaffected)
Vendor states this is fixed in 6.3.2 (unaffected)
Vendor states this is fixed in 6.4 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card