{"id":"CVE-2022-50642","aliases":["CVE-2022-50642"],"related":[],"kind":"vulnerability","state":"published","title":"platform/chrome: cros_ec_typec: zero out stale pointers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nplatform/chrome: cros_ec_typec: poner a cero punteros obsoletos\n\n’cros_typec_get_switch_handles’ asigna cuatro punteros al obtener identificadores de switch type-c. Todos estos punteros son liberados si no se logra obtener alguno de ellos; por lo tanto, los punteros en ’port’ se vuelven obsoletos. Los punteros obsoletos eventualmente causan uso después de liberación o doble liberación en rutas de código posteriores. Poner a cero todos los campos de puntero después de la liberación para eliminar estos punteros obsoletos.","source":"nvd"}],"published":"2025-12-09T00:00:16.490Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f28adb41dab4a2795fd959750df57adffd2bb0be","fixed":"0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40","status":"affected"},{"type":"git","introduced":"f28adb41dab4a2795fd959750df57adffd2bb0be","fixed":"b610758bb3e0674644c1255cdafc2f46b7e05ff9","status":"affected"},{"type":"git","introduced":"f28adb41dab4a2795fd959750df57adffd2bb0be","fixed":"6613f36a2fa5c69e528bccba8b3d831f759dad2f","status":"affected"},{"type":"git","introduced":"f28adb41dab4a2795fd959750df57adffd2bb0be","fixed":"9a8aadcf0b459c1257b9477fd6402e1d5952ae07","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50642","url":"https://www.cve.org/CVERecord?id=CVE-2022-50642","licence":"CVE Terms of Use","modified":"2026-05-11T19:22:47.744Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50642","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50642","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.300Z","epss":{"score":0.00214,"percentile":0.12443,"date":"2026-12-01T12:00:22.000Z"}}