CVE-2022-50165 Details
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.
A vulnerability has been identified in the Linux kernel's handling of WMI commands through the debugfs interface for the wil6210 wireless driver. This issue arises from an uninitialized variable being used, which can lead to unintended behavior or information leakage. The problem was introduced when the function simple_write_to_buffer() was replaced with memdup_user(), but the return value was not properly adjusted. As a result, a warning was generated indicating that the variable 'rc' was being used without initialization. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit fixing this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/409bd72e544fdf4809ea0dac337bb5a1f11a25a9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/52b11a48cf073e0aab923ae809a765d756cecf13 | kernel.org | Patch |
| https://git.kernel.org/stable/c/689e5caf63e99e15d2f485ec297c1bf9243e0e28 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6c5fee83bdbeffe8d607d1ab125122a75f40bd1a | kernel.org | Patch |
| https://git.kernel.org/stable/c/b13c84e877d7a3095bacb14665db304b2c00e95f | kernel.org | Patch |
| https://git.kernel.org/stable/c/c9fde3a44da566d8929070ab6bda4f0dfa9955d0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d4742c886043b69d2d058bfde3998ef333b66595 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d578e0af3a003736f6c440188b156483d451b329 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.17, < 4.14.291 >= 4.15, < 4.19.256 >= 4.20, < 5.4.211 >= 5.5, < 5.10.137 >= 5.11, < 5.15.61 >= 5.16, < 5.18.18 >= 5.19, < 5.19.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 17, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |