CVE-2022-50642
platform/chrome: cros_ec_typec: zero out stale pointers
- Published
- Updated
- Reserved
- Assigned by
- Linux
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.
Timeline
ID reserved
By Linux
- 1 day later
· 1 day later
Published
- 5 months later
· 5 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE. NVD status: Deferred.
- EPSS (exploitation in 30 days)
- 0.20% · top 90% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.
Affected products
- affected f28adb41dab4a2795fd959750df57adffd2bb0be – < 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40
- affected f28adb41dab4a2795fd959750df57adffd2bb0be – < b610758bb3e0674644c1255cdafc2f46b7e05ff9
- affected f28adb41dab4a2795fd959750df57adffd2bb0be – < 6613f36a2fa5c69e528bccba8b3d831f759dad2f
- affected f28adb41dab4a2795fd959750df57adffd2bb0be – < 9a8aadcf0b459c1257b9477fd6402e1d5952ae07
- affected 5.9
- unaffected < 5.9
- unaffected 5.15.86 – ≤ 5.15.*
- unaffected 6.0.16 – ≤ 6.0.*
- unaffected 6.1.2 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References (4)
- https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40 (opens in a new tab)
- https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9 (opens in a new tab)
- https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f (opens in a new tab)
- https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-50642)Record last updated .