drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios() (Linux Linux)

CVE-2022-50520
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.17 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

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.

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected c61e2775873f603148e8e998a938721b7d222d24 < 6f28c7f67af4ef9bca580ab67ae2d4511797af56 ; affected c61e2775873f603148e8e998a938721b7d222d24 < e738f82e5b1311e8fb3d1409491a6fcce6418fbe ; affected c61e2775873f603148e8e998a938721b7d222d24 < 1079df6acf56f99d86b0081a38c84701412cc90e ; affected c61e2775873f603148e8e998a938721b7d222d24 < 470a77989037c3ab2b08bf2d026d2c0ddc35ff5b ; affected c61e2775873f603148e8e998a938721b7d222d24 < 3991d98a8a07b71c02f3a39f77d6d9a7f575a5c4 ; affected c61e2775873f603148e8e998a938721b7d222d24 < 88c6e0995c04b170563b5c894c50a3b2152e18c2
Linux · Linuxaffected 3.6 ; unaffected 0 < 3.6 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD