# CVE-2022-50642: platform/chrome: cros_ec_typec: zero out stale pointers

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-09T00:00:16.490Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f28adb41dab4a2795fd959750df57adffd2bb0be before 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40; from f28adb41dab4a2795fd959750df57adffd2bb0be before b610758bb3e0674644c1255cdafc2f46b7e05ff9; from f28adb41dab4a2795fd959750df57adffd2bb0be before 6613f36a2fa5c69e528bccba8b3d831f759dad2f; from f28adb41dab4a2795fd959750df57adffd2bb0be before 9a8aadcf0b459c1257b9477fd6402e1d5952ae07; 5.9 (not affected: before 5.9; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

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

## Sources

- CVE List: [CVE-2022-50642](https://www.cve.org/CVERecord?id=CVE-2022-50642), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50642](https://nvd.nist.gov/vuln/detail/CVE-2022-50642), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-50642 · Whole record: https://cve.day/CVE-2022-50642.json · Rebuilt by cve.day 2026-11-25T22:58:21.300Z
