regulator: core: fix unbalanced of node refcount in regulator_dev_lookup() (Linux Linux)

CVE-2022-50887
Not available

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: regulator: core: fix unbalanced of node refcount in regulator_dev_lookup() I got the the following report: OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /i2c/pmic@62/regulators/exten In of_get_regulator(), the node is returned from of_parse_phandle() with refcount incremented, after using it, of_node_put() need be called.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < 0e88505ac0a6ae97746bcdbd4b042ee9f20455ae ; affected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < 4dfcf5087db9a34a300d6b99009232d4537c3e6a ; affected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < 3ac888db0f67813d91373a9a61c840f815cd4ec9 ; affected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < d39937f8de641c44a337cec4a2e5d3e8add20a7d ; affected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < f48c474efe05cf9ce5e535b5e0ddd710e963936c ; affected 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 < cda1895f3b7f324ece1614308a815a3994983b97
Linux · Linuxaffected 3.3 ; unaffected 0 < 3.3 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 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