CVE-2022-49787
mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
Check your servers for CVE-2022-49787
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-49787 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:
mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
pci_get_device() will increase the reference count for the returned pci_dev. We need to use pci_dev_put() to decrease the reference count before amd_probe() returns. There is no problem for the 'smbus_dev == NULL' branch because pci_dev_put() can also handle the NULL input parameter case.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 7570e5b5419ffd34b6dc45a88c51e113a9a187e3 affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 5dbd6378dbf96787d6dbcca44156c511ae085ea3 affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 27f712cd47d65e14cd52cc32a23d42aeef583d5d affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 4423866d31a06a810db22062ed13389416a66b22 affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before a99a547658e5d451f01ed307426286716b6f01bf affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 35bca18092685b488003509fef7055aa2d4f2ebc affected from 659c9bc114a810b3a3c1e50585cc57f1312a6d60, before 222cfa0118aa68687ace74aab8fdf77ce8fbd7e6
Other versions: unaffected
|
| Linux |
affected 4.4 unaffected before 4.4 unaffected from 4.14.300 up to and including 4.14.* unaffected from 4.19.267 up to and including 4.19.* unaffected from 5.4.225 up to and including 5.4.* unaffected from 5.10.156 up to and including 5.10.* unaffected from 5.15.80 up to and including 5.15.* unaffected from 6.0.10 up to and including 6.0.* unaffected 6.1 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-49787 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49787
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-49787
trivy image --scanners vuln IMAGE | grep CVE-2022-49787
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/7570e5b5419ffd34b6dc45a88c51e113a9a187e3 git.kernel.org
- https://git.kernel.org/stable/c/5dbd6378dbf96787d6dbcca44156c511ae085ea3 git.kernel.org
- https://git.kernel.org/stable/c/27f712cd47d65e14cd52cc32a23d42aeef583d5d git.kernel.org
- https://git.kernel.org/stable/c/4423866d31a06a810db22062ed13389416a66b22 git.kernel.org
- https://git.kernel.org/stable/c/a99a547658e5d451f01ed307426286716b6f01bf git.kernel.org
- https://git.kernel.org/stable/c/35bca18092685b488003509fef7055aa2d4f2ebc git.kernel.org
- https://git.kernel.org/stable/c/222cfa0118aa68687ace74aab8fdf77ce8fbd7e6 git.kernel.org
Source: the record CVE-2022-49787 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