CVE-2022-50642 Details
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.
A vulnerability in the Linux kernel's handling of Type C switch pointers can lead to use-after-free or double free errors. The issue arises in the 'cros_typec_get_switch_handles' function, which allocates four pointers for Type C switch handles. If the function fails to obtain all the handles, the allocated pointers are freed, leaving the 'port' pointers stale. These stale pointers can then cause memory management errors in subsequent code paths. The vulnerability has been addressed by modifying the code to zero out the pointer fields after they are freed, preventing the creation of stale pointers.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| platform/chrome | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion