Back

HIGH

hwmon: (ibmpex) Fix possible UAF when ibmpex_register_bmc() fails

Published Oct 21, 2024

Description

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().

Affected products

Remediation

Red Hat statement

This issue is considered to be a moderate impact flaw, as the exploitation for this will need an ADMIN (or ROOT) privilege (PR:H).

Red Hat mitigation

To mitigate this issue, prevent the `ibmpex` kernel module from loading by creating a blacklist file. This action may impact systems that rely on IBM pSeries hardware monitoring. Create a file named `/etc/modprobe.d/blacklist-ibmpex.conf` with the following content: ``` blacklist ibmpex install ibmpex /bin/true ``` After creating the file, regenerate the initramfs and reboot the system for the changes to take effect. For example, on Red Hat Enterprise Linux: ```bash draco-update initramfs reboot ``` Note that a system reboot is required for the mitigation to be fully applied.

Weaknesses (1)

References (14)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Oct 21, 2024
Updated Aug 5, 2026
Reserved Aug 22, 2024
CISA Vulnrichment
Updated Oct 22, 2024
NVD
Status Modified
Modified Aug 4, 2026
Red Hat
Severity Moderate
Public date Oct 21, 2024
ENISA EUVD
Assigner Linux
Published Oct 21, 2024
Updated Aug 5, 2026
Exploited since n/a
EUVD-2022-53913