CVE-2022-50642

platform/chrome: cros_ec_typec: zero out stale pointers

State
Published
Severity
Not scored
Published
Dec 9, 2025
Updated
May 11, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f28adb41dab4a2795fd959750df57adffd2bb0be to before 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40Affected
  • f28adb41dab4a2795fd959750df57adffd2bb0be to before b610758bb3e0674644c1255cdafc2f46b7e05ff9Affected
  • f28adb41dab4a2795fd959750df57adffd2bb0be to before 6613f36a2fa5c69e528bccba8b3d831f759dad2fAffected
  • f28adb41dab4a2795fd959750df57adffd2bb0be to before 9a8aadcf0b459c1257b9477fd6402e1d5952ae07Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.