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

Published Oct 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

Smatch report warning as follows:

drivers/hwmon/ibmpex.c:509 ibmpexregisterbmc() warn: '&data->list' not removed from list

If ibmpexfindsensors() fails in ibmpexregisterbmc(), data will be freed, but data->list will not be removed from driverdata.bmcdata, then list traversal may cause UAF.

Fix by removeing it from driverdata.bmcdata before free().

Other sources

In the Linux kernel, the following vulnerability has been resolved:

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

Smatch report warning as follows:

drivers/hwmon/ibmpex.c:509 ibmpexregisterbmc() warn: '&data->list' not removed from list

If ibmpexfindsensors() fails in ibmpexregisterbmc(), data will be freed, but data->list will not be removed from driverdata.bmcdata, then list traversal may cause UAF.

Fix by removeing it from driverdata.bmcdata before free().

NVD

Affected Software

14 affected components
Linux Linux kernel>=2.6.24<4.9.335
Linux Linux kernel>=4.10<4.14.301
Linux Linux kernel>=4.15<4.19.268
Linux Linux kernel>=4.20<5.4.226
Linux Linux kernel>=5.5<5.10.158
Linux Linux kernel>=5.11<5.15.82
Linux Linux kernel>=5.16<6.0.12
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In ibmpex_register_bmc(), if ibmpex_register_bmc() fails, remove '&data->list' (i.e., data->list) from driver_data.bmc_data before calling free(), to prevent list traversal after free/UAF.

    Linux kernel drivers/hwmon/ibmpex.c Remove data->list from driver_data.bmc_data before free() = N/A

Event History

Oct 21, 2024
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverity
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·09:03 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49029?

CVE-2022-49029 has been classified with a severity level dependent on the specific Linux kernel version in use.

2

How do I fix CVE-2022-49029?

To address CVE-2022-49029, users should upgrade to a patched version of the Linux kernel that resolves the vulnerability.

3

Which Linux kernel versions are affected by CVE-2022-49029?

CVE-2022-49029 affects multiple versions of the Linux kernel, specifically from 2.6.24 up to the latest 6.1 release candidates.

4

Is CVE-2022-49029 a remote exploit?

CVE-2022-49029 can potentially be exploited locally by an attacker with the appropriate privileges.

5

What component of the Linux kernel does CVE-2022-49029 affect?

CVE-2022-49029 specifically affects the hwmon subsystem related to ibmpex.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203