CVE-2022-50642
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.
Affected versions
Linux kernel versions
5.9
and later are affected. Fixed in
5.15.86,
6.0.16,
6.1.2,
6.2
and their respective stable series.
References
The following references provide additional information about CVE-2022-50642 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f
-
PatchKernel patch commithttps://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07
Frequently asked questions
-
What is CVE-2022-50642?
CVE-2022-50642 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.9 onward and has been patched in 5.15.86, 6.0.16, 6.1.2 and others. CVE-2022-50642 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2022-50642?
Yes — CVE-2022-50642 has been patched. Fixed versions include 5.15.86, 6.0.16, 6.1.2 and others. If you are running Linux kernel 5.9 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50642 actively exploited?
No — CVE-2022-50642 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.