# CVE-2022-50165: wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2025-06-18T11:03:19.539Z
- Modified: 2026-06-17T05:22:53.563Z
- Weaknesses: CWE-908
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from ff974e4083341383d3dd4079e52ed30f57f376f0 before b13c84e877d7a3095bacb14665db304b2c00e95f; from ff974e4083341383d3dd4079e52ed30f57f376f0 before c9fde3a44da566d8929070ab6bda4f0dfa9955d0; from ff974e4083341383d3dd4079e52ed30f57f376f0 before 52b11a48cf073e0aab923ae809a765d756cecf13; from ff974e4083341383d3dd4079e52ed30f57f376f0 before 6c5fee83bdbeffe8d607d1ab125122a75f40bd1a; from ff974e4083341383d3dd4079e52ed30f57f376f0 before 689e5caf63e99e15d2f485ec297c1bf9243e0e28; from ff974e4083341383d3dd4079e52ed30f57f376f0 before d4742c886043b69d2d058bfde3998ef333b66595; from ff974e4083341383d3dd4079e52ed30f57f376f0 before 409bd72e544fdf4809ea0dac337bb5a1f11a25a9; from ff974e4083341383d3dd4079e52ed30f57f376f0 before d578e0af3a003736f6c440188b156483d451b329; 3.17 (not affected: before 3.17; from 4.14.291 up to 4.14.*; from 4.19.256 up to 4.19.*; from 5.4.211 up to 5.4.*; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 3.17 before 4.14.291; from 4.15 before 4.19.256; from 4.20 before 5.4.211; from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/b13c84e877d7a3095bacb14665db304b2c00e95f> (patch)
- <https://git.kernel.org/stable/c/c9fde3a44da566d8929070ab6bda4f0dfa9955d0> (patch)
- <https://git.kernel.org/stable/c/52b11a48cf073e0aab923ae809a765d756cecf13> (patch)
- <https://git.kernel.org/stable/c/6c5fee83bdbeffe8d607d1ab125122a75f40bd1a> (patch)
- <https://git.kernel.org/stable/c/689e5caf63e99e15d2f485ec297c1bf9243e0e28> (patch)
- <https://git.kernel.org/stable/c/d4742c886043b69d2d058bfde3998ef333b66595> (patch)
- <https://git.kernel.org/stable/c/409bd72e544fdf4809ea0dac337bb5a1f11a25a9> (patch)
- <https://git.kernel.org/stable/c/d578e0af3a003736f6c440188b156483d451b329> (patch)

## Sources

- CVE List: [CVE-2022-50165](https://www.cve.org/CVERecord?id=CVE-2022-50165), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50165](https://nvd.nist.gov/vuln/detail/CVE-2022-50165), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50165 · Whole record: https://cve.day/CVE-2022-50165.json · Rebuilt by cve.day 2026-11-25T22:58:21.085Z
