Bug 2420291 (CVE-2022-50642) - CVE-2022-50642 kernel: platform/chrome: cros_ec_typec: zero out stale pointers
Summary: CVE-2022-50642 kernel: platform/chrome: cros_ec_typec: zero out stale pointers
Keywords:
Status: NEW
Alias: CVE-2022-50642
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-09 01:06 UTC by OSIDB Bzimport
Modified: 2025-12-10 03:43 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-09 01:06:19 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.