CVE-2022-50576
serial: pch: Fix PCI device refcount leak in pch_request_dma()
Check your servers for CVE-2022-50576
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-50576 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:
serial: pch: Fix PCI device refcount leak in pch_request_dma()
As comment of pci_get_slot() says, it returns a pci_device with its refcount increased. The caller must decrement the reference count by calling pci_dev_put().
Since 'dma_dev' is only used to filter the channel in filter(), we can call pci_dev_put() before exiting from pch_request_dma(). Add the missing pci_dev_put() for the normal and error path.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 90ff030ca10b69feeebda1427550ebf9ed2ad868 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 56e5a7c5ee3f0dc8978b5df2b1a98a1b060c5e2a affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before dfd15c5550b9190d5b0f9bcacb3e6436322f3854 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before d165388227aa7e46a9751b90bae6337b5335cdbb affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 07f4ca68b0f6bf84b6b391c14b59fd179fcde9c5 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 6f7d82380fbeaed3a940efc33c23f0c4bbd0fc02 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 4f5d28865c665c9064de631a518f9bc8099d9ce4 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 516614a371c26e3334625b4bca19a5362bf658d6 affected from 3c6a483275f47a2ef7119309ad3d791c10cf30da, before 8be3a7bf773700534a6e8f87f6ed2ed111254be5
Other versions: unaffected
|
| Linux |
affected 2.6.38 unaffected before 2.6.38 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* 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-50576 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50576
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-50576
trivy image --scanners vuln IMAGE | grep CVE-2022-50576
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/90ff030ca10b69feeebda1427550ebf9ed2ad868 git.kernel.org
- https://git.kernel.org/stable/c/56e5a7c5ee3f0dc8978b5df2b1a98a1b060c5e2a git.kernel.org
- https://git.kernel.org/stable/c/dfd15c5550b9190d5b0f9bcacb3e6436322f3854 git.kernel.org
- https://git.kernel.org/stable/c/d165388227aa7e46a9751b90bae6337b5335cdbb git.kernel.org
- https://git.kernel.org/stable/c/07f4ca68b0f6bf84b6b391c14b59fd179fcde9c5 git.kernel.org
- https://git.kernel.org/stable/c/6f7d82380fbeaed3a940efc33c23f0c4bbd0fc02 git.kernel.org
- https://git.kernel.org/stable/c/4f5d28865c665c9064de631a518f9bc8099d9ce4 git.kernel.org
- https://git.kernel.org/stable/c/516614a371c26e3334625b4bca19a5362bf658d6 git.kernel.org
- https://git.kernel.org/stable/c/8be3a7bf773700534a6e8f87f6ed2ed111254be5 git.kernel.org
Source: the record CVE-2022-50576 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