{"id":"CVE-2022-50246","aliases":["CVE-2022-50246"],"related":[],"kind":"vulnerability","state":"published","title":"usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: tcpci: fix of node refcount leak in tcpci_register_port()\n\nI got the following report while doing device(mt6370-tcpc) load\ntest with CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled:\n\n  OF: ERROR: memory leak, expected refcount 1 instead of 2,\n  of_node_get()/of_node_put() unbalanced - destroy cset entry:\n  attach overlay node /i2c/pmic@34/tcpc/connector\n\nThe 'fwnode' set in tcpci_parse_config() which is called\nin tcpci_register_port(), its node refcount is increased\nin device_get_named_child_node(). It needs be put while\nexiting, so call fwnode_handle_put() in the error path of\ntcpci_register_port() and in tcpci_unregister_port() to\navoid leak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: tcpci: fix of node refcount leak in tcpci_register_port()\n\nI got the following report while doing device(mt6370-tcpc) load\ntest with CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled:\n\n  OF: ERROR: memory leak, expected refcount 1 instead of 2,\n  of_node_get()/of_node_put() unbalanced - destroy cset entry:\n  attach overlay node /i2c/pmic@34/tcpc/connector\n\nThe 'fwnode' set in tcpci_parse_config() which is called\nin tcpci_register_port(), its node refcount is increased\nin device_get_named_child_node(). It needs be put while\nexiting, so call fwnode_handle_put() in the error path of\ntcpci_register_port() and in tcpci_unregister_port() to\navoid leak.","source":"cvelist"}],"published":"2025-09-15T14:02:04.841Z","modified":"2026-11-05T20:17:29.100Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"4f257e2eba419ab4cd880c822346450e4e7b2af3","status":"affected"},{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"d3b6c28a71f111a6c67ddc3238aab95910fd86cf","status":"affected"},{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"ba75be6f0d9d028d20852564206565a4c03e3288","status":"affected"},{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"e75a324409715bd71348f79a49aa61b69dbeb676","status":"affected"},{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"5f125507d2270035dfcf83fbff6cff5a143e200c","status":"affected"},{"type":"git","introduced":"5e85a04c8c0d271d7561a770b85741f186398868","fixed":"0384e87e3fec735e47f1c133c796f32ef7a72a9b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4f257e2eba419ab4cd880c822346450e4e7b2af3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3b6c28a71f111a6c67ddc3238aab95910fd86cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba75be6f0d9d028d20852564206565a4c03e3288","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e75a324409715bd71348f79a49aa61b69dbeb676","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f125507d2270035dfcf83fbff6cff5a143e200c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0384e87e3fec735e47f1c133c796f32ef7a72a9b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:07:43.565Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50246","url":"https://www.cve.org/CVERecord?id=CVE-2022-50246","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:30.746Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50246","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50246","licence":"Public domain","modified":"2026-11-05T20:17:29.100Z"}],"updatedAt":"2026-11-25T22:58:21.126Z","epss":{"score":0.00229,"percentile":0.08172,"date":"2026-11-30T12:00:22.000Z"}}