CVE-2022-49029

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

State
Published
Severity
7.8 High
Published
Oct 21, 2024
Updated
Aug 5, 2026
Reserved
Aug 22, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before f2a13196ad41c6c2ab058279dffe6c97292e753aAffected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before 798198273bf86673b970b51acdb35e57f42b3fcbAffected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before 24b9633f7db7f4809be7053df1d2e117e7c2de10Affected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before 7b2b67fe1339389e0bf3c37c7a677a004ac0e4e3Affected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before 90907cd4d11351ff76c9a447bcb5db0e264c47cdAffected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before 45f6e81863747c0d7bc6a95ec51129900e71467aAffected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before e65cfd1f9cd27d9c27ee5cb88128a9f79f25d863Affected
  • 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab to before e2a87785aab0dac190ac89be6a9ba955e2c634f2Affected
LinuxLinux
  • 2.6.24Affected
  • before 2.6.24Not affected
  • 4.9.335 through 4.9.*Not affected
  • 4.14.301 through 4.14.*Not affected
  • 4.19.268 through 4.19.*Not affected
  • 5.4.226 through 5.4.*Not affected
  • 5.10.158 through 5.10.*Not affected
  • 5.15.82 through 5.15.*Not affected
  • 6.0.12 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.