Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.291, 4.19.256, 5.10.137, 5.15.61, 5.18.18, 5.19.2, 5.4.211
CVEs
CVE-2022-50165
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:32 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 18 Jun 2025, 11:03 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.

osv:CVE-2022-50165

Kernel

Fixed versions: 4.14.291, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18, 5.19.2

Complete source record
{
  "id": "e0924af27c5e6e5a4864e0495128deef774af208f79b2ce03ead95dfe91a448e",
  "url": "https://osv.dev/vulnerability/CVE-2022-50165",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "wifi: wil6210: debugfs: fix uninitialized variable use in `wil_write_file_wmi()`",
    "summary": "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.",
    "evidence": "osv:CVE-2022-50165",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.291",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.256",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.211",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.137",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.61",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.18.18",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50165",
      "aliases": [
        "CVE-2022-50165"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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/cve-osv-conversion/osv-output/CVE-2022-50165.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.17.0"
                },
                {
                  "fixed": "4.14.291"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.256"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.211"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.137"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.61"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.18.18"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.19.0"
                },
                {
                  "fixed": "5.19.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50165.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.833668839Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/409bd72e544fdf4809ea0dac337bb5a1f11a25a9",
        "https://git.kernel.org/stable/c/52b11a48cf073e0aab923ae809a765d756cecf13",
        "https://git.kernel.org/stable/c/689e5caf63e99e15d2f485ec297c1bf9243e0e28",
        "https://git.kernel.org/stable/c/6c5fee83bdbeffe8d607d1ab125122a75f40bd1a",
        "https://git.kernel.org/stable/c/b13c84e877d7a3095bacb14665db304b2c00e95f",
        "https://git.kernel.org/stable/c/c9fde3a44da566d8929070ab6bda4f0dfa9955d0",
        "https://git.kernel.org/stable/c/d4742c886043b69d2d058bfde3998ef333b66595",
        "https://git.kernel.org/stable/c/d578e0af3a003736f6c440188b156483d451b329",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50165.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50165",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50165.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50165",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 489898,
  "published_at": "2025-06-18T11:03:19.539+00:00"
}