CVE-2022-50642
platform/chrome: cros_ec_typec: zero out stale pointers
Check your servers for CVE-2022-50642
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50642 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f28adb41dab4a2795fd959750df57adffd2bb0be, before 0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40 affected from f28adb41dab4a2795fd959750df57adffd2bb0be, before b610758bb3e0674644c1255cdafc2f46b7e05ff9 affected from f28adb41dab4a2795fd959750df57adffd2bb0be, before 6613f36a2fa5c69e528bccba8b3d831f759dad2f affected from f28adb41dab4a2795fd959750df57adffd2bb0be, before 9a8aadcf0b459c1257b9477fd6402e1d5952ae07
Other versions: unaffected
|
| Linux |
affected 5.9 unaffected before 5.9 unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50642 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50642
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50642
trivy image --scanners vuln IMAGE | grep CVE-2022-50642
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0ceadb5a3e45f1b81cf54bd496b40a5e50b6bd40 git.kernel.org
- https://git.kernel.org/stable/c/b610758bb3e0674644c1255cdafc2f46b7e05ff9 git.kernel.org
- https://git.kernel.org/stable/c/6613f36a2fa5c69e528bccba8b3d831f759dad2f git.kernel.org
- https://git.kernel.org/stable/c/9a8aadcf0b459c1257b9477fd6402e1d5952ae07 git.kernel.org
Source: the record CVE-2022-50642 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse