CVE-2022-50165

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

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:03 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.17 ≤ v < 4.14.2913.17 ≤ v < 4.19.2563.17 ≤ v < 5.10.1373.17 ≤ v < 5.15.613.17 ≤ v < 5.18.183.17 ≤ v < 5.19.23.17 ≤ v < 5.4.2113.17 ≤ v < 6.04.15 ≤ v < 4.19.2564.20 ≤ v < 5.4.2115.11 ≤ v < 5.15.615.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.5 ≤ v < 5.10.1373.17ff974e4083341383d3dd4079e52ed30f57f376f0
Vendor states this is fixed in 409bd72e544fdf4809ea0dac337bb5a1f11a25a9 (fixed)
Vendor states this is fixed in 52b11a48cf073e0aab923ae809a765d756cecf13 (fixed)
Vendor states this is fixed in 689e5caf63e99e15d2f485ec297c1bf9243e0e28 (fixed)
Vendor states this is fixed in 6c5fee83bdbeffe8d607d1ab125122a75f40bd1a (fixed)
Vendor states this is fixed in b13c84e877d7a3095bacb14665db304b2c00e95f (fixed)
Vendor states this is fixed in c9fde3a44da566d8929070ab6bda4f0dfa9955d0 (fixed)
Vendor states this is fixed in d4742c886043b69d2d058bfde3998ef333b66595 (fixed)
Vendor states this is fixed in d578e0af3a003736f6c440188b156483d451b329 (fixed)
Vendor states this is fixed in 3.17 (unaffected)
Vendor states this is fixed in 4.14.291 (unaffected)
Vendor states this is fixed in 4.19.256 (unaffected)
Vendor states this is fixed in 5.10.137 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 5.4.211 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/409bd72e544fdf4809ea0dac337bb5a1f11a25a9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/52b11a48cf073e0aab923ae809a765d756cecf13
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/689e5caf63e99e15d2f485ec297c1bf9243e0e28
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6c5fee83bdbeffe8d607d1ab125122a75f40bd1a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b13c84e877d7a3095bacb14665db304b2c00e95f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c9fde3a44da566d8929070ab6bda4f0dfa9955d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d4742c886043b69d2d058bfde3998ef333b66595
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d578e0af3a003736f6c440188b156483d451b329

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-908

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card