regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.303, 4.19.270, 4.9.337, 5.10.163, 5.15.86, 5.4.229, 6.0.16, 6.1.2
- CVEs
- CVE-2022-50887
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:53 UTC · Revision 1
Source evidence
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
core-osv · Original sourcePublished 30 Dec 2025, 12:37 UTC
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.
osv:CVE-2022-50887
Kernel
Fixed versions: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2
Complete source record
{
"id": "a6ee616d6743e74a3a4cc75ab0cd2973ae18f654565a195ab6be2a7f292d5af7",
"url": "https://osv.dev/vulnerability/CVE-2022-50887",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()",
"summary": "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.",
"evidence": "osv:CVE-2022-50887",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.9.337",
"evidence": "/affected/1/ranges"
},
{
"value": "4.14.303",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.270",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.229",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.163",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.86",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50887",
"aliases": [
"CVE-2022-50887"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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/cve-osv-conversion/osv-output/CVE-2022-50887.json"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50887.json"
}
}
],
"modified": "2026-10-28T02:30:36.801792446Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0e88505ac0a6ae97746bcdbd4b042ee9f20455ae",
"https://git.kernel.org/stable/c/2b93c58adddd98812ad928bbc2063038f3df1ffd",
"https://git.kernel.org/stable/c/2f98469c3141f8e42ba11075a273fb795bbad57f",
"https://git.kernel.org/stable/c/3ac888db0f67813d91373a9a61c840f815cd4ec9",
"https://git.kernel.org/stable/c/4dfcf5087db9a34a300d6b99009232d4537c3e6a",
"https://git.kernel.org/stable/c/cda1895f3b7f324ece1614308a815a3994983b97",
"https://git.kernel.org/stable/c/d39937f8de641c44a337cec4a2e5d3e8add20a7d",
"https://git.kernel.org/stable/c/f2b41b748c19962b82709d9f23c6b2b0ce9d2f91",
"https://git.kernel.org/stable/c/f48c474efe05cf9ce5e535b5e0ddd710e963936c",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50887.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50887",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50887.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50887",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 504332,
"published_at": "2025-12-30T12:37:05.505+00:00"
}