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.

Package Linux Kernel
Published 2025-12-09
Last modified 2026-04-15
Patch available
Yes

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.

Affected from
≥ 5.9
Fixed in
✓ 5.15.86 5.15.x ✓ 6.0.16 6.0.x ✓ 6.1.2 6.1.x ✓ 6.2

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.

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.