CVE-2022-50642
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2022-50642, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-09

Last updated on: 2025-12-09

Assigner: kernel.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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-09
Last Modified
2025-12-09
Generated
2026-07-06
AI Q&A
2025-12-09
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves stale pointers in the cros_ec_typec platform code. Specifically, the function cros_typec_get_switch_handles allocates four pointers for type-c switch handles. If obtaining any of these pointers fails, all allocated pointers are freed, but the pointers in the 'port' structure are not cleared, leaving stale pointers. These stale pointers can lead to use-after-free or double free errors in later code execution. The fix involves zeroing out all pointer fields after freeing them to prevent these stale pointer issues.

Impact Analysis

This vulnerability can lead to use-after-free or double free conditions in the Linux kernel's type-c switch handling code. Such memory management errors can cause system instability, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges if exploited.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2022-50642. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart