CVE-2022-50246
usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()
Mitigation
- Upgrade Linux to 0384e87e3fec735e47f1c133c796f32ef7a72a9b or later.
Who should check
- Anyone running Linux >= 5e85a04c8c0d271d7561a770b85741f186398868, < 4f257e2eba419ab4cd880c822346450e4e7b2af3; >= 5e85a04c8c0d271d7561a770b85741f186398868, < d3b6c28a71f111a6c67ddc3238aab95910fd86cf; >= 5e85a04c8c0d271d7561a770b85741f186398868, < ba75be6f0d9d028d20852564206565a4c03e3288; >= 5e85a04c8c0d271d7561a770b85741f186398868, < e75a324409715bd71348f79a49aa61b69dbeb676; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 5f125507d2270035dfcf83fbff6cff5a143e200c; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 0384e87e3fec735e47f1c133c796f32ef7a72a9b
- Anyone running Linux 4.19
Vulnerability facts
- Affected
- Linux >= 5e85a04c8c0d271d7561a770b85741f186398868, < 4f257e2eba419ab4cd880c822346450e4e7b2af3; >= 5e85a04c8c0d271d7561a770b85741f186398868, < d3b6c28a71f111a6c67ddc3238aab95910fd86cf; >= 5e85a04c8c0d271d7561a770b85741f186398868, < ba75be6f0d9d028d20852564206565a4c03e3288; >= 5e85a04c8c0d271d7561a770b85741f186398868, < e75a324409715bd71348f79a49aa61b69dbeb676; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 5f125507d2270035dfcf83fbff6cff5a143e200c; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 0384e87e3fec735e47f1c133c796f32ef7a72a9b; Linux 4.19
- Fixed in
- Linux 4f257e2eba419ab4cd880c822346450e4e7b2af3, Linux 5f125507d2270035dfcf83fbff6cff5a143e200c, Linux 0384e87e3fec735e47f1c133c796f32ef7a72a9b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpci: fix of node refcount leak in tcpci_register_port() I got the following report while doing device(mt6370-tcpc) load test with CONFIG_OF_UNITTEST and CONFIG_OF_DYNAMIC enabled: 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@34/tcpc/connector The 'fwnode' set in tcpci_parse_config() which is called in tcpci_register_port(), its node refcount is increased in device_get_named_child_node(). It needs be put while exiting, so call fwnode_handle_put() in the error path of tcpci_register_port() and in tcpci_unregister_port() to avoid leak.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5e85a04c8c0d271d7561a770b85741f186398868, < 4f257e2eba419ab4cd880c822346450e4e7b2af3; >= 5e85a04c8c0d271d7561a770b85741f186398868, < d3b6c28a71f111a6c67ddc3238aab95910fd86cf; >= 5e85a04c8c0d271d7561a770b85741f186398868, < ba75be6f0d9d028d20852564206565a4c03e3288; >= 5e85a04c8c0d271d7561a770b85741f186398868, < e75a324409715bd71348f79a49aa61b69dbeb676; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 5f125507d2270035dfcf83fbff6cff5a143e200c; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 0384e87e3fec735e47f1c133c796f32ef7a72a9b | — | cvelist |
| Linux | 4.19 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50246. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50246.md Affected: Linux >= 5e85a04c8c0d271d7561a770b85741f186398868, < 4f257e2eba419ab4cd880c822346450e4e7b2af3; >= 5e85a04c8c0d271d7561a770b85741f186398868, < d3b6c28a71f111a6c67ddc3238aab95910fd86cf; >= 5e85a04c8c0d271d7561a770b85741f186398868, < ba75be6f0d9d028d20852564206565a4c03e3288; >= 5e85a04c8c0d271d7561a77… Fixed in: Linux 4f257e2eba419ab4cd880c822346450e4e7b2af3, Linux 5f125507d2270035dfcf83fbff6cff5a143e200c, Linux 0384e87e3fec735e47f1c133c796f32ef7a72a9b Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/4f257e2eba419ab4cd880c822346450e4e7b2af3
- https://git.kernel.org/stable/c/d3b6c28a71f111a6c67ddc3238aab95910fd86cf
- https://git.kernel.org/stable/c/ba75be6f0d9d028d20852564206565a4c03e3288
- https://git.kernel.org/stable/c/e75a324409715bd71348f79a49aa61b69dbeb676
- https://git.kernel.org/stable/c/5f125507d2270035dfcf83fbff6cff5a143e200c
- https://git.kernel.org/stable/c/0384e87e3fec735e47f1c133c796f32ef7a72a9b
FAQ
Is CVE-2022-50246 being exploited?
There is no confirmed exploitation: CVE-2022-50246 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50246?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50246?
Linux >= 5e85a04c8c0d271d7561a770b85741f186398868, < 4f257e2eba419ab4cd880c822346450e4e7b2af3; >= 5e85a04c8c0d271d7561a770b85741f186398868, < d3b6c28a71f111a6c67ddc3238aab95910fd86cf; >= 5e85a04c8c0d271d7561a770b85741f186398868, < ba75be6f0d9d028d20852564206565a4c03e3288; >= 5e85a04c8c0d271d7561a770b85741f186398868, < e75a324409715bd71348f79a49aa61b69dbeb676; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 5f125507d2270035dfcf83fbff6cff5a143e200c; >= 5e85a04c8c0d271d7561a770b85741f186398868, < 0384e87e3fec735e47f1c133c796f32ef7a72a9b; Linux 4.19.
Is there a fix for CVE-2022-50246?
Yes. Fixed in Linux 4f257e2eba419ab4cd880c822346450e4e7b2af3, Linux 5f125507d2270035dfcf83fbff6cff5a143e200c, Linux 0384e87e3fec735e47f1c133c796f32ef7a72a9b. Upgrade Linux to 0384e87e3fec735e47f1c133c796f32ef7a72a9b or later.
How do I check if I'm affected by CVE-2022-50246?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.