wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ff974e4083341383d3dd4079e52ed30f57f376f0 · < d4742c886043b69d2d058bfde3998ef333b66595| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The wil6210 debugfs write function can return an uninitialized variable after a successful memdup_user() call. This occurs when writing to the affected debugfs file; the input does not specify an attacker impact or authentication requirements.
Engineers running Linux kernels with the wil6210 driver should check their kernel; affected versions are not specified.