CVE-2022-50165

published 18 Jun 2025 · updated 11 May 2026

wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 409bd72e544fdf4809ea0dac337bb5a1f11a25a9, Kernel 52b11a48cf073e0aab923ae809a765d756cecf13, Kernel 689e5caf63e99e15d2f485ec297c1bf9243e0e28 and 5 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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=3.17, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <409bd72e544fdf4809ea0dac337bb5a1f11a25a9, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <52b11a48cf073e0aab923ae809a765d756cecf13, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <689e5caf63e99e15d2f485ec297c1bf9243e0e28, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <6c5fee83bdbeffe8d607d1ab125122a75f40bd1a, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <b13c84e877d7a3095bacb14665db304b2c00e95f, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <c9fde3a44da566d8929070ab6bda4f0dfa9955d0, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <d4742c886043b69d2d058bfde3998ef333b66595, >=ff974e4083341383d3dd4079e52ed30f57f376f0 <d578e0af3a003736f6c440188b156483d451b329409bd72e544fdf4809ea0dac337bb5a1f11a25a9, 52b11a48cf073e0aab923ae809a765d756cecf13, 689e5caf63e99e15d2f485ec297c1bf9243e0e28, 6c5fee83bdbeffe8d607d1ab125122a75f40bd1a, b13c84e877d7a3095bacb14665db304b2c00e95f, c9fde3a44da566d8929070ab6bda4f0dfa9955d0, d4742c886043b69d2d058bfde3998ef333b66595, d578e0af3a003736f6c440188b156483d451b329

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50165 severity on Zeptric[![CVE-2022-50165](https://zeptric.io/badge/cve/CVE-2022-50165.svg)](https://zeptric.io/cve/CVE-2022-50165)