hwmon: (ibmpex) Fix possible UAF when ibmpex_register_bmc() fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab · < 45f6e81863747c0d7bc6a95ec51129900e71467a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (ibmpex) Fix possible UAF when ibmpex_register_bmc() fails
Smatch report warning as follows:
drivers/hwmon/ibmpex.c:509 ibmpex_register_bmc() warn: '&data->list' not removed from list
If ibmpex_find_sensors() fails in ibmpex_register_bmc(), data will be freed, but data->list will not be removed from driver_data.bmc_data, then list traversal may cause UAF.
Fix by removeing it from driver_data.bmc_data before free().
From the CVE record · Linux
The ibmpex hwmon driver can leave a freed entry on a list if sensor discovery fails during BMC registration. Later traversal of that list may cause a use-after-free. The input does not specify whether an attacker can trigger this remotely or whether authentication or user interaction is required.
Engineers running Linux kernels with the ibmpex hwmon driver should check their versions; affected versions are not specified.