CVE-2022-50642

platform/chrome: cros_ec_typec: zero out stale pointers

N/A
Published: December 9, 2025 at 12:00 AM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.9 ≤ v < 5.15.865.9 ≤ v < 6.0.165.9 ≤ v < 6.1.25.9 ≤ v < 6.25.9f28adb41dab4a2795fd959750df57adffd2bb0be
Vendor states this is fixed in 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40 (fixed)
Vendor states this is fixed in 6613f36a2fa5c69e528bccba8b3d831f759dad2f (fixed)
Vendor states this is fixed in 9a8aadcf0b459c1257b9477fd6402e1d5952ae07 (fixed)
Vendor states this is fixed in b610758bb3e0674644c1255cdafc2f46b7e05ff9 (fixed)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card