# CVE-2022-50246: usb: typec: tcpci: fix of node refcount leak in tcpci\_register\_port()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:02:04.841Z
- **Modified:** 2026-11-05T20:17:29.100Z

## Who should check

- Anyone running Linux \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 4f257e2eba419ab4cd880c822346450e4e7b2af3; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< d3b6c28a71f111a6c67ddc3238aab95910fd86cf; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< ba75be6f0d9d028d20852564206565a4c03e3288; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< e75a324409715bd71348f79a49aa61b69dbeb676; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 5f125507d2270035dfcf83fbff6cff5a143e200c; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 0384e87e3fec735e47f1c133c796f32ef7a72a9b
- Anyone running Linux 4.19

## 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

- Linux: \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 4f257e2eba419ab4cd880c822346450e4e7b2af3; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< d3b6c28a71f111a6c67ddc3238aab95910fd86cf; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< ba75be6f0d9d028d20852564206565a4c03e3288; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< e75a324409715bd71348f79a49aa61b69dbeb676; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 5f125507d2270035dfcf83fbff6cff5a143e200c; \>= 5e85a04c8c0d271d7561a770b85741f186398868, \< 0384e87e3fec735e47f1c133c796f32ef7a72a9b (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 0384e87e3fec735e47f1c133c796f32ef7a72a9b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/4f257e2eba419ab4cd880c822346450e4e7b2af3>
- patch: <https://git.kernel.org/stable/c/d3b6c28a71f111a6c67ddc3238aab95910fd86cf>
- patch: <https://git.kernel.org/stable/c/ba75be6f0d9d028d20852564206565a4c03e3288>
- patch: <https://git.kernel.org/stable/c/e75a324409715bd71348f79a49aa61b69dbeb676>
- patch: <https://git.kernel.org/stable/c/5f125507d2270035dfcf83fbff6cff5a143e200c>
- patch: <https://git.kernel.org/stable/c/0384e87e3fec735e47f1c133c796f32ef7a72a9b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50246>

HTML: <https://flawdb.com/CVE-2022-50246> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50246>
