Skip to contentSkip to conversation

CVE-2023-53682: hwmon: (xgene) Fix ioremap and memremap leak

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 7, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (xgene) Fix ioremap and memremap leak

Smatch reports:

drivers/hwmon/xgene-hwmon.c:757 xgene_hwmon_probe() warn:
'ctx->pcc_comm_addr' from ioremap() not released on line: 757.

This is because in drivers/hwmon/xgene-hwmon.c:701 xgene_hwmon_probe(), ioremap and memremap is not released, which may cause a leak.

To fix this, ioremap and memremap is modified to devm_ioremap and devm_memremap.

[groeck: Fixed formatting and subject]

The Linux kernel CVE team has assigned CVE-2023-53682 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.25 with commit 9d482a09acd3d5f61a56aefc125d32c81994707b
	Fixed in 6.2.12 with commit 1773185a0a87006c1be78a978d9dd61aa7a33db8
	Fixed in 6.3 with commit 813cc94c7847ae4a17e9f744fb4dbdf7df6bd732

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-53682

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/hwmon/xgene-hwmon.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/9d482a09acd3d5f61a56aefc125d32c81994707b
	https://git.kernel.org/stable/c/1773185a0a87006c1be78a978d9dd61aa7a33db8
	https://git.kernel.org/stable/c/813cc94c7847ae4a17e9f744fb4dbdf7df6bd732