High · published October 22, 2024
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().
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 2.6.24, < 4.9.335 | 4.9.335 |
| linux/linux_kernel | ≥ 4.10, < 4.14.301 | 4.14.301 |
| linux/linux_kernel | ≥ 4.15, < 4.19.268 | 4.19.268 |
| linux/linux_kernel | ≥ 4.20, < 5.4.226 | 5.4.226 |
| linux/linux_kernel | ≥ 5.5, < 5.10.158 | 5.10.158 |
| linux/linux_kernel | ≥ 5.11, < 5.15.82 | 5.15.82 |
| linux/linux_kernel | ≥ 5.16, < 6.0.12 | 6.0.12 |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |