CVE-2022-50246

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50246
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50246.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50246
Downstream
Published
2025-09-15T14:15:35Z
Modified
2025-09-15T19:01:16Z
Summary
[none]
Details

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

usb: typec: tcpci: fix of node refcount leak in tcpciregisterport()

I got the following report while doing device(mt6370-tcpc) load test with CONFIGOFUNITTEST and CONFIGOFDYNAMIC enabled:

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

The 'fwnode' set in tcpciparseconfig() which is called in tcpciregisterport(), its node refcount is increased in devicegetnamedchildnode(). It needs be put while exiting, so call fwnodehandleput() in the error path of tcpciregisterport() and in tcpciunregisterport() to avoid leak.

References

Affected packages