hwmon: (xgene) Fix ioremap and memremap leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.256.2.126.3In 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]
From the CVE record · Linux
The Linux kernel’s xgene hwmon driver can leak memory mappings during device probing because ioremap and memremap mappings are not released. The input does not describe an attacker action or specify access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the xgene hwmon driver should check their builds; affected versions are not specified.