{"id":"CVE-2022-50887","aliases":["CVE-2022-50887"],"related":[],"kind":"vulnerability","state":"published","title":"regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-12-30T12:37:05.505Z","modified":"2026-06-17T05:24:21.390Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"0e88505ac0a6ae97746bcdbd4b042ee9f20455ae","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"4dfcf5087db9a34a300d6b99009232d4537c3e6a","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"3ac888db0f67813d91373a9a61c840f815cd4ec9","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"d39937f8de641c44a337cec4a2e5d3e8add20a7d","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"f48c474efe05cf9ce5e535b5e0ddd710e963936c","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"cda1895f3b7f324ece1614308a815a3994983b97","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"2b93c58adddd98812ad928bbc2063038f3df1ffd","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"2f98469c3141f8e42ba11075a273fb795bbad57f","status":"affected"},{"type":"git","introduced":"69511a452e6dc6b74fe4f3671a51b1b44b9c57e3","fixed":"f2b41b748c19962b82709d9f23c6b2b0ce9d2f91","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.3","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0e88505ac0a6ae97746bcdbd4b042ee9f20455ae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4dfcf5087db9a34a300d6b99009232d4537c3e6a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ac888db0f67813d91373a9a61c840f815cd4ec9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d39937f8de641c44a337cec4a2e5d3e8add20a7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f48c474efe05cf9ce5e535b5e0ddd710e963936c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cda1895f3b7f324ece1614308a815a3994983b97","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b93c58adddd98812ad928bbc2063038f3df1ffd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f98469c3141f8e42ba11075a273fb795bbad57f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2b41b748c19962b82709d9f23c6b2b0ce9d2f91","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50887","url":"https://www.cve.org/CVERecord?id=CVE-2022-50887","licence":"CVE Terms of Use","modified":"2026-05-11T19:27:03.329Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50887","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50887","licence":"Public domain","modified":"2026-06-17T05:24:21.390Z"}],"updatedAt":"2026-11-25T22:58:21.392Z","epss":{"score":0.00254,"percentile":0.18056,"date":"2026-12-01T12:00:22.000Z"}}