What’s Vulnerable › Vulnerabilities

CVE-2022-49029: hwmon: (ibmpex) Fix possible UAF when ibmpex_register_bmc() fails

Description

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

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.301, 4.19.268, 4.9.335, 5.10.158. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49029 or the next vulnerability affects your stack