NetSight
medium5.5

CVE-2022-49787

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() w…

Impact

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

VendorProductAffected versions
LinuxLinux Kernel
from 4.4 before 4.14.300
from 4.15 before 4.19.267
from 4.20 before 5.4.225
from 5.5 before 5.10.156
from 5.11 before 5.15.80
from 5.16 before 6.0.10

Weakness classification

References