CVE-2022-50642
Unknown Unknown - Not Provided
BaseFortify

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-05-07
AI Q&A
2025-12-09
EPSS Evaluated
2026-05-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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart