CVE-2022-50887

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

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before 0e88505ac0a6ae97746bcdbd4b042ee9f20455aeAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before 4dfcf5087db9a34a300d6b99009232d4537c3e6aAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before 3ac888db0f67813d91373a9a61c840f815cd4ec9Affected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before d39937f8de641c44a337cec4a2e5d3e8add20a7dAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before f48c474efe05cf9ce5e535b5e0ddd710e963936cAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before cda1895f3b7f324ece1614308a815a3994983b97Affected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before 2b93c58adddd98812ad928bbc2063038f3df1ffdAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before 2f98469c3141f8e42ba11075a273fb795bbad57fAffected
  • 69511a452e6dc6b74fe4f3671a51b1b44b9c57e3 to before f2b41b748c19962b82709d9f23c6b2b0ce9d2f91Affected
LinuxLinux
  • 3.3Affected
  • before 3.3Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.