Bug 2426055 (CVE-2022-50887) - CVE-2022-50887 kernel: regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
Summary: CVE-2022-50887 kernel: regulator: core: fix unbalanced of node refcount in re...
Keywords:
Status: NEW
Alias: CVE-2022-50887
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:05 UTC by OSIDB Bzimport
Modified: 2025-12-31 12:28 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:05:20 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.


Note You need to log in before you can comment on or make changes to this bug.