CVE-2022-50642
In the Linux kernel, the following vulnerability has been resolved: …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40
- git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f
- git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07
- git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9
- nvd.nist.gov/vuln/detail/CVE-2022-50642
- cve.org/CVERecord?id=CVE-2022-50642
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.