# CVE-2022-50642: platform/chrome: cros\_ec\_typec: zero out stale pointers

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T00:00:16.490Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< b610758bb3e0674644c1255cdafc2f46b7e05ff9; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 6613f36a2fa5c69e528bccba8b3d831f759dad2f; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 9a8aadcf0b459c1257b9477fd6402e1d5952ae07
- Anyone running Linux 5.9

## Description

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

platform/chrome: cros\_ec\_typec: zero out stale pointers

\`cros\_typec\_get\_switch\_handles\` allocates four pointers when obtaining
type-c switch handles. These pointers are all freed if failing to obtain
any of them; therefore, pointers in \`port\` become stale. The stale
pointers eventually cause use-after-free or double free in later code
paths. Zeroing out all pointer fields after freeing to eliminate these
stale pointers.

## Affected and fixed versions

- Linux: \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< b610758bb3e0674644c1255cdafc2f46b7e05ff9; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 6613f36a2fa5c69e528bccba8b3d831f759dad2f; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 9a8aadcf0b459c1257b9477fd6402e1d5952ae07 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 9a8aadcf0b459c1257b9477fd6402e1d5952ae07 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-50642. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50642.md
Affected: Linux >= f28adb41dab4a2795fd959750df57adffd2bb0be, < 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40; >= f28adb41dab4a2795fd959750df57adffd2bb0be, < b610758bb3e0674644c1255cdafc2f46b7e05ff9; >= f28adb41dab4a2795fd959750df57adffd2bb0be, < 6613f36a2fa5c69e528bccba8b3d831f759dad2f; >= f28adb41dab4a2795fd9597…
Fixed in: Linux 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40, Linux 6613f36a2fa5c69e528bccba8b3d831f759dad2f, Linux 9a8aadcf0b459c1257b9477fd6402e1d5952ae07

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-50642 being exploited?

There is no confirmed exploitation: CVE-2022-50642 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50642?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50642?

Linux \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< b610758bb3e0674644c1255cdafc2f46b7e05ff9; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 6613f36a2fa5c69e528bccba8b3d831f759dad2f; \>= f28adb41dab4a2795fd959750df57adffd2bb0be, \< 9a8aadcf0b459c1257b9477fd6402e1d5952ae07; Linux 5.9.

### Is there a fix for CVE-2022-50642?

Yes. Fixed in Linux 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40, Linux 6613f36a2fa5c69e528bccba8b3d831f759dad2f, Linux 9a8aadcf0b459c1257b9477fd6402e1d5952ae07. Upgrade Linux to 9a8aadcf0b459c1257b9477fd6402e1d5952ae07 or later.

### How do I check if I'm affected by CVE-2022-50642?

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

- other: <https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40>
- other: <https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9>
- other: <https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f>
- other: <https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07>

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

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