CVE-2022-49729

nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred

MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.27 % · centile 18 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred Similar to the handling of play_deferred in commit 19cfe912c37b ("Bluetooth: btusb: Fix memory leak in play_deferred"), we thought a patch might be needed here as well. Currently usb_submit_urb is called directly to submit deferred tx urbs after unanchor them. So the usb_giveback_urb_bh would failed to unref it in usb_unanchor_urb and cause memory leak. Put those urbs in tx_anchor to avoid the leak, and also fix the error handling.

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < 1eb0afecfb9cd0f38424b82bd9aaa542310934ee ; affected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < f21f908347712b8288ffe83b531b5e977042b29c ; affected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < 3e7c7df6991ac349f2fa8540047757df666e610f ; affected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < 6b4d8b44e7163a77fe942f5b80e1651c1b78c537 ; affected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < 0eeec1a8b0cd38c47edeb042980a6aeacecf35ed ; affected f26e30cc6b50ba81e30ca3016c29ad4b48b93eaa < 6616872cfe7f0474a22dd1f12699f95bcf81a54d
Linux · Linuxaffected 3.14 ; unaffected 0 < 3.14 ; unaffected 4.9.320 ≤ 4.9.* ; unaffected 4.14.285 ≤ 4.14.* ; unaffected 4.19.249 ≤ 4.19.* ; unaffected 5.4.200 ≤ 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