CVE-2022-50165

MEDIUM

Linux Kernel 3.17-5.19.1 - Use of Uninitialized Resource in wil_write_file_wmi()

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0020
EPSS Percentile 9.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-908
Status published
Products (26)
linux/Kernel 3.17.0 - 4.14.291linux
linux/Kernel 4.15.0 - 4.19.256linux
linux/Kernel 4.20.0 - 5.4.211linux
linux/Kernel 5.11.0 - 5.15.61linux
linux/Kernel 5.16.0 - 5.18.18linux
linux/Kernel 5.19.0 - 5.19.2linux
linux/Kernel 5.5.0 - 5.10.137linux
Linux/Linux < 3.17
Linux/Linux 3.17
Linux/Linux 4.14.291 - 4.14.*
... and 16 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026