drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c61e2775873f603148e8e998a938721b7d222d24 · < 88c6e0995c04b170563b5c894c50a3b2152e18c2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
As comment of pci_get_class() says, it returns a pci_device with its refcount increased and decreased the refcount for the input parameter @from if it is not NULL.
If we break the loop in radeon_atrm_get_bios() with 'pdev' not NULL, we need to call pci_dev_put() to decrease the refcount. Add the missing pci_dev_put() to avoid refcount leak.
From the CVE record · Linux
The Linux kernel’s radeon driver can leak a PCI device reference when radeon_atrm_get_bios() exits a loop with a non-NULL device pointer. The input does not specify an attacker action or whether exploitation requires network access, authentication, local access, or user interaction.
Engineers running the Linux kernel with the radeon driver should check their kernel version; affected versions are not specified in the input.