CVE-2022-50165

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50165
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50165.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50165
Downstream
Related
Published
2025-06-18T11:15:46Z
Modified
2025-08-09T20:01:25Z
Summary
[none]
Details

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 simplewritetobuffer() with memdupuser() but it forgets to change the value to be returned that came from simplewriteto_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.

References

Affected packages