CVE-2022-50157
PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()
Check your servers for CVE-2022-50157
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-50157 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:
PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()
of_get_next_child() returns a node pointer with refcount incremented, so we should use of_node_put() on it when we don't need it anymore.
mc_pcie_init_irq_domains() only calls of_node_put() in the normal path, missing it in some error paths. Add missing of_node_put() to avoid refcount leak.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d, before c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58 affected from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d, before 6cd5f93b5c6a66c68a91dbc604a78207252ecd43 affected from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d, before 880ece912b958a0c92cc0baa8e906fb9b49a4b53 affected from 6f15a9c9f94133bee0d861a4bf25e10aaa95219d, before f030304fdeb87ec8f1b518c73703214aec6cc24a
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.15.61 up to and including 5.15.* unaffected from 5.18.18 up to and including 5.18.* unaffected from 5.19.2 up to and including 5.19.* unaffected 6.0 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-50157 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50157
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-50157
trivy image --scanners vuln IMAGE | grep CVE-2022-50157
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/c0ad5c7e68d10f6f8ffb0f4329e3c19404fbca58 git.kernel.org
- https://git.kernel.org/stable/c/6cd5f93b5c6a66c68a91dbc604a78207252ecd43 git.kernel.org
- https://git.kernel.org/stable/c/880ece912b958a0c92cc0baa8e906fb9b49a4b53 git.kernel.org
- https://git.kernel.org/stable/c/f030304fdeb87ec8f1b518c73703214aec6cc24a git.kernel.org
Source: the record CVE-2022-50157 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