CVE-2022-50642
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50642 is a use-after-free and double-free vulnerability in the Linux kernel's platform/chrome: cros_ec_typec driver. The flaw exists in the cros_typec_get_switch_handles function, which allocates four pointers for Type-C switch handles; if any allocation fails, all pointers are freed, but the corresponding fields in the port structure are not zeroed out, leaving stale pointers that can be dereferenced in later code paths. The vulnerability was published on December 9, 2025, and affects Linux kernel versions starting from 5.9 (commit f28adb41dab4) up to the patched stable releases. The CVSS category is estimated as Medium, with an EPSS score of approximately 0.018% (Feedly).

Technical details

The root cause is improper pointer lifecycle management (CWE-416: Use After Free / CWE-415: Double Free) in the cros_ec_typec Chrome platform driver within the Linux kernel. When cros_typec_get_switch_handles fails to obtain one or more USB Type-C switch handles, it frees all allocated pointers but does not NULL out the corresponding fields in the port structure. Subsequent code paths that reference these fields will operate on freed memory, potentially triggering use-after-free or double-free conditions. The fix zeroes out all pointer fields immediately after freeing them to prevent stale pointer dereferences (Feedly).

Impact

Exploitation of this vulnerability could allow a local attacker or a kernel code path triggered by hardware events (e.g., USB Type-C plug/unplug) to cause kernel memory corruption via use-after-free or double-free conditions. This may result in a kernel panic (denial of service), privilege escalation, or arbitrary code execution in kernel context, depending on heap layout and exploitation technique. The impact is limited to systems running the affected cros_ec_typec driver, which is primarily present on Chromebook and Chrome OS-based hardware (Feedly).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2022-50642. The EPSS score is approximately 0.018%, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require local access or the ability to trigger Type-C switch handle allocation failures on affected hardware (Feedly).

Mitigation and workarounds

The Linux kernel stable tree has released patches addressing this vulnerability across multiple stable branches. Fixed versions include Linux 5.15.86, 6.0.16, 6.1.2, and 6.2 (mainline). Users should update to these or later kernel versions. The patches are available via the following stable commits: 0ceadb5a3e45 (5.15.x), b610758bb3e0 (6.0.x), 6613f36a2fa5 (6.1.x), and 9a8aadcf0b45 (6.2). Distribution maintainers (e.g., SUSE) have also backported the fix; users should apply available distribution kernel updates (Feedly).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management