CVE-2023-53682 PUBLISHED

hwmon: (xgene) Fix ioremap and memremap leak

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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]

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 9d482a09acd3d5f61a56aefc125d32c81994707b (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 1773185a0a87006c1be78a978d9dd61aa7a33db8 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to 813cc94c7847ae4a17e9f744fb4dbdf7df6bd732 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 6.1.25 to 6.1.* (incl.)
  • unaffected from 6.2.12 to 6.2.* (incl.)
  • unaffected from 6.3 to * (incl.)

References