media: pvrusb2: fix memory leak in pvr_probe (Linux Linux)

CVE-2022-49982
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: media: pvrusb2: fix memory leak in pvr_probe The error handling code in pvr2_hdw_create forgets to unregister the v4l2 device. When pvr2_hdw_create returns back to pvr2_context_create, it calls pvr2_context_destroy to destroy context, but mp->hdw is NULL, which leads to that pvr2_hdw_destroy directly returns. Fix this by adding v4l2_device_unregister to decrease the refcount of usb interface.

Faiblesses (CWE)

  • CWE-401 — Mémoire non libérée après sa durée de vie utile

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 b72b7bf5cbb2ae77b3bf748456655fc284baf04c < 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d ; affected b72b7bf5cbb2ae77b3bf748456655fc284baf04c < ba7dd8a9686a61a34b3a7b922ce721378d4740d0 ; affected b72b7bf5cbb2ae77b3bf748456655fc284baf04c < 491762b3250fb06a0c97b5198656ea48359eaeed ; affected b72b7bf5cbb2ae77b3bf748456655fc284baf04c < 466b67c0543b2ae67814d053f6e29b39be6b33bb ; affected b72b7bf5cbb2ae77b3bf748456655fc284baf04c < bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb ; affected b72b7bf5cbb2ae77b3bf748456655fc284baf04c < f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5
Linux · Linuxaffected 2.6.30 ; unaffected 0 < 2.6.30 ; unaffected 4.9.327 ≤ 4.9.* ; unaffected 4.14.292 ≤ 4.14.* ; unaffected 4.19.257 ≤ 4.19.* ; unaffected 5.4.212 ≤ 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