{"id":"CVE-2022-50165","summary":"wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`\n\nCommit 7a4836560a61 changes simple_write_to_buffer() with memdup_user()\nbut it forgets to change the value to be returned that came from\nsimple_write_to_buffer() call. It results in the following warning:\n\n  warning: variable 'rc' is uninitialized when used here [-Wuninitialized]\n           return rc;\n                  ^~\n\nRemove rc variable and just return the passed in length if the\nmemdup_user() succeeds.","modified":"2026-04-03T13:14:29.918010159Z","published":"2025-06-18T11:03:19.539Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02308-1","SUSE-SU-2025:02320-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50165.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/409bd72e544fdf4809ea0dac337bb5a1f11a25a9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/52b11a48cf073e0aab923ae809a765d756cecf13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/689e5caf63e99e15d2f485ec297c1bf9243e0e28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c5fee83bdbeffe8d607d1ab125122a75f40bd1a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b13c84e877d7a3095bacb14665db304b2c00e95f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9fde3a44da566d8929070ab6bda4f0dfa9955d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4742c886043b69d2d058bfde3998ef333b66595"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d578e0af3a003736f6c440188b156483d451b329"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50165.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50165"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ff974e4083341383d3dd4079e52ed30f57f376f0"},{"fixed":"b13c84e877d7a3095bacb14665db304b2c00e95f"},{"fixed":"c9fde3a44da566d8929070ab6bda4f0dfa9955d0"},{"fixed":"52b11a48cf073e0aab923ae809a765d756cecf13"},{"fixed":"6c5fee83bdbeffe8d607d1ab125122a75f40bd1a"},{"fixed":"689e5caf63e99e15d2f485ec297c1bf9243e0e28"},{"fixed":"d4742c886043b69d2d058bfde3998ef333b66595"},{"fixed":"409bd72e544fdf4809ea0dac337bb5a1f11a25a9"},{"fixed":"d578e0af3a003736f6c440188b156483d451b329"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50165.json"}}],"schema_version":"1.7.5"}