Skip to content
Heist/ feed
Back to feed
UnratedFix available

staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw() In rtw_init_drv_sw(), there are various init functions are called to populate the padapter structure and some checks for their return value. However, except for the first one error path, the other five error paths do not properly release the previous allocated resources, which leads to various memory leaks. This patch fixes them and keeps the success and error separate. Note that these changes keep the form of `rtw_init_drv_sw()` in "drivers/staging/r8188eu/os_dep/os_intfs.c". As there is no proper device to test with, no runtime testing was performed.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.75, 5.19.17, 6.0.3
CVEs
CVE-2022-50469
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:06 UTC · Revision 1

Source evidence

staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()

core-osv · Original source

Published 1 Oct 2025, 11:45 UTC

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw() In rtw_init_drv_sw(), there are various init functions are called to populate the padapter structure and some checks for their return value. However, except for the first one error path, the other five error paths do not properly release the previous allocated resources, which leads to various memory leaks. This patch fixes them and keeps the success and error separate. Note that these changes keep the form of `rtw_init_drv_sw()` in "drivers/staging/r8188eu/os_dep/os_intfs.c". As there is no proper device to test with, no runtime testing was performed.

osv:CVE-2022-50469

Kernel

Fixed versions: 5.15.75, 5.19.17, 6.0.3

Complete source record
{
  "id": "31ae2f8f70e77828934a363a602157db4a938086891a929dc6393231a4e9398d",
  "url": "https://osv.dev/vulnerability/CVE-2022-50469",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw() In rtw_init_drv_sw(), there are various init functions are called to populate the padapter structure and some checks for their return value. However, except for the first one error path, the other five error paths do not properly release the previous allocated resources, which leads to various memory leaks. This patch fixes them and keeps the success and error separate. Note that these changes keep the form of `rtw_init_drv_sw()` in \"drivers/staging/r8188eu/os_dep/os_intfs.c\". As there is no proper device to test with, no runtime testing was performed.",
    "evidence": "osv:CVE-2022-50469",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.19.17",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50469",
      "aliases": [
        "CVE-2022-50469"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "554c0a3abf216c991c5ebddcdb2c08689ecd290b"
                },
                {
                  "fixed": "b4573a2bad3c3e2643ef3939079eb7035a30e6ee"
                },
                {
                  "fixed": "6b2052b365f8035ab7f09ac24b5b499002b298cb"
                },
                {
                  "fixed": "d95d1526d9f06978c1a7186810a5490d72c62742"
                },
                {
                  "fixed": "5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50469.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.12.0"
                },
                {
                  "fixed": "5.15.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.19.17"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.20.0"
                },
                {
                  "fixed": "6.0.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50469.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.178860944Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0",
        "https://git.kernel.org/stable/c/6b2052b365f8035ab7f09ac24b5b499002b298cb",
        "https://git.kernel.org/stable/c/b4573a2bad3c3e2643ef3939079eb7035a30e6ee",
        "https://git.kernel.org/stable/c/d95d1526d9f06978c1a7186810a5490d72c62742",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50469.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50469",
        "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-50469.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50469",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 491780,
  "published_at": "2025-10-01T11:45:39.811+00:00"
}