CVE-2022-50165

Updated on 18 Jun 2025

Severity

5.5 Medium severity

Details

CVSS score
5.5
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Overview

About vulnerability

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.

Details

Affected packages:
kernel @ 4.18.0 (+9 more)

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.

Fixes