In the Linux kernel, the following vulnerability has been resolved:
serial: pch: Fix PCI device refcount leak in pchrequestdma()
As comment of pcigetslot() says, it returns a pcidevice with its refcount increased. The caller must decrement the reference count by calling pcidev_put().
Since 'dmadev' is only used to filter the channel in filter(), we can call pcidevput() before exiting from pchrequestdma(). Add the missing pcidev_put() for the normal and error path.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50576.json"
}