mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 659c9bc114a810b3a3c1e50585cc57f1312a6d60 · < 35bca18092685b488003509fef7055aa2d4f2ebc| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mmc sdhci-pci driver can leak a PCI device reference because amd_probe() does not call pci_dev_put() before returning. The input does not establish whether an attacker can trigger the leak or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.