CVE-2022-50887
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.25% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before 0e88505ac0a6ae97746bcdbd4b042ee9f20455ae, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before 4dfcf5087db9a34a300d6b99009232d4537c3e6a, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before 3ac888db0f67813d91373a9a61c840f815cd4ec9, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before d39937f8de641c44a337cec4a2e5d3e8add20a7d, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before f48c474efe05cf9ce5e535b5e0ddd710e963936c, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before cda1895f3b7f324ece1614308a815a3994983b97, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before 2b93c58adddd98812ad928bbc2063038f3df1ffd, from 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 before 2f98469c3141f8e42ba11075a273fb795bbad57f and 2 more
Not affected: before 3.3, from 4.9.337 up to 4.9.*, from 4.14.303 up to 4.14.*, from 4.19.270 up to 4.19.*, from 5.4.229 up to 5.4.*, from 5.10.163 up to 5.10.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2022-50887 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-50887 changed 2026-06-17Public domain