CVE-2022-50887

Source
https://cve.org/CVERecord?id=CVE-2022-50887
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50887.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50887
Downstream
Related
Published
2025-12-30T12:37:05.505Z
Modified
2026-03-20T11:47:40.516274Z
Summary
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

I got the the following report:

OF: ERROR: memory leak, expected refcount 1 instead of 2, ofnodeget()/ofnodeput() unbalanced - destroy cset entry: attach overlay node /i2c/pmic@62/regulators/exten

In ofgetregulator(), the node is returned from ofparsephandle() with refcount incremented, after using it, ofnodeput() need be called.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50887.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"