{"id":"CVE-2022-50887","summary":"regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nregulator: core: fix unbalanced of node refcount in regulator_dev_lookup()\n\nI got the the following report:\n\n  OF: ERROR: memory leak, expected refcount 1 instead of 2,\n  of_node_get()/of_node_put() unbalanced - destroy cset entry:\n  attach overlay node /i2c/pmic@62/regulators/exten\n\nIn of_get_regulator(), the node is returned from of_parse_phandle()\nwith refcount incremented, after using it, of_node_put() need be called.","modified":"2026-03-20T11:47:40.516274Z","published":"2025-12-30T12:37:05.505Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:0617-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50887.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0e88505ac0a6ae97746bcdbd4b042ee9f20455ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b93c58adddd98812ad928bbc2063038f3df1ffd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f98469c3141f8e42ba11075a273fb795bbad57f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ac888db0f67813d91373a9a61c840f815cd4ec9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4dfcf5087db9a34a300d6b99009232d4537c3e6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cda1895f3b7f324ece1614308a815a3994983b97"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d39937f8de641c44a337cec4a2e5d3e8add20a7d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f2b41b748c19962b82709d9f23c6b2b0ce9d2f91"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f48c474efe05cf9ce5e535b5e0ddd710e963936c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50887.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50887"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3"},{"fixed":"0e88505ac0a6ae97746bcdbd4b042ee9f20455ae"},{"fixed":"4dfcf5087db9a34a300d6b99009232d4537c3e6a"},{"fixed":"3ac888db0f67813d91373a9a61c840f815cd4ec9"},{"fixed":"d39937f8de641c44a337cec4a2e5d3e8add20a7d"},{"fixed":"f48c474efe05cf9ce5e535b5e0ddd710e963936c"},{"fixed":"cda1895f3b7f324ece1614308a815a3994983b97"},{"fixed":"2b93c58adddd98812ad928bbc2063038f3df1ffd"},{"fixed":"2f98469c3141f8e42ba11075a273fb795bbad57f"},{"fixed":"f2b41b748c19962b82709d9f23c6b2b0ce9d2f91"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50887.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"fixed":"4.9.337"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50887.json"}}],"schema_version":"1.7.5"}