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

CVE-2022-49029
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < f2a13196ad41c6c2ab058279dffe6c97292e753a ; affected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < 798198273bf86673b970b51acdb35e57f42b3fcb ; affected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < 24b9633f7db7f4809be7053df1d2e117e7c2de10 ; affected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < 7b2b67fe1339389e0bf3c37c7a677a004ac0e4e3 ; affected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < 90907cd4d11351ff76c9a447bcb5db0e264c47cd ; affected 57c7c3a0fdea95eddcaeba31e7ca7dfc917682ab < 45f6e81863747c0d7bc6a95ec51129900e71467a
Linux · Linuxaffected 2.6.24 ; unaffected 0 < 2.6.24 ; unaffected 4.9.335 ≤ 4.9.* ; unaffected 4.14.301 ≤ 4.14.* ; unaffected 4.19.268 ≤ 4.19.* ; unaffected 5.4.226 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD