{"id":"CVE-2022-50642","published":"2025-12-09T00:00:16Z","modified":"2026-05-11T19:22:47Z","title":"platform/chrome: cros_ec_typec: zero out stale pointers","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/chrome: cros_ec_typec: zero out stale pointers\n\n`cros_typec_get_switch_handles` allocates four pointers when obtaining\ntype-c switch handles. These pointers are all freed if failing to obtain\nany of them; therefore, pointers in `port` become stale. The stale\npointers eventually cause use-after-free or double free in later code\npaths. Zeroing out all pointer fields after freeing to eliminate these\nstale pointers.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00214,"percentile":0.1176,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40","tags":[]},{"url":"https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9","tags":[]},{"url":"https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f","tags":[]},{"url":"https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07","tags":[]}],"priority":{"score":2.4,"factors":[{"name":"EPSS percentile","points":2.35}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f28adb41dab4a2795fd959750df57adffd2bb0be, < 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40",">= f28adb41dab4a2795fd959750df57adffd2bb0be, < b610758bb3e0674644c1255cdafc2f46b7e05ff9",">= f28adb41dab4a2795fd959750df57adffd2bb0be, < 6613f36a2fa5c69e528bccba8b3d831f759dad2f",">= f28adb41dab4a2795fd959750df57adffd2bb0be, < 9a8aadcf0b459c1257b9477fd6402e1d5952ae07"]},{"vendor":"Linux","product":"Linux","versions":["5.9"]}],"euvd":{"id":"EUVD-2022-55714","exploited":false,"provenance":"source"}}