Bug 2373473 (CVE-2022-50165) - CVE-2022-50165 kernel: wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`
Summary: CVE-2022-50165 kernel: wifi: wil6210: debugfs: fix uninitialized variable use...
Keywords:
Status: NEW
Alias: CVE-2022-50165
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:04 UTC by OSIDB Bzimport
Modified: 2025-06-20 02:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:04:35 UTC
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.

Comment 1 Avinash Hanwate 2025-06-20 02:02:11 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061827-CVE-2022-50165-1495@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.