What’s Vulnerable › Vulnerabilities

CVE-2022-49787: mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.300, 4.19.267, 5.10.156, 5.15.80. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49787 or the next vulnerability affects your stack