wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()` (Linux Linux)

CVE-2022-50165
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()` Commit 7a4836560a61 changes simple_write_to_buffer() with memdup_user() but it forgets to change the value to be returned that came from simple_write_to_buffer() call. It results in the following warning: warning: variable 'rc' is uninitialized when used here [-Wuninitialized] return rc; ^~ Remove rc variable and just return the passed in length if the memdup_user() succeeds.

Faiblesses (CWE)

  • CWE-908 — Utilisation d'une ressource non initialisée

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 ff974e4083341383d3dd4079e52ed30f57f376f0 < b13c84e877d7a3095bacb14665db304b2c00e95f ; affected ff974e4083341383d3dd4079e52ed30f57f376f0 < c9fde3a44da566d8929070ab6bda4f0dfa9955d0 ; affected ff974e4083341383d3dd4079e52ed30f57f376f0 < 52b11a48cf073e0aab923ae809a765d756cecf13 ; affected ff974e4083341383d3dd4079e52ed30f57f376f0 < 6c5fee83bdbeffe8d607d1ab125122a75f40bd1a ; affected ff974e4083341383d3dd4079e52ed30f57f376f0 < 689e5caf63e99e15d2f485ec297c1bf9243e0e28 ; affected ff974e4083341383d3dd4079e52ed30f57f376f0 < d4742c886043b69d2d058bfde3998ef333b66595
Linux · Linuxaffected 3.17 ; unaffected 0 < 3.17 ; unaffected 4.14.291 ≤ 4.14.* ; unaffected 4.19.256 ≤ 4.19.* ; unaffected 5.4.211 ≤ 5.4.* ; unaffected 5.10.137 ≤ 5.10.*

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