VDB

CVE-2022-50513

CVE-2022-50513 PUBLISHED

staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()

Reported by linux · Published October 7, 2025

In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv() In rtw_init_cmd_priv(), if `pcmdpriv->rsp_allocated_buf` is allocated in failure, then `pcmdpriv->cmd_allocated_buf` will be not properly released. Besides, considering there are only two error paths and the first one can directly return, so we do not need implicitly jump to the `exit` tag to execute the error handler. So this patch added `kfree(pcmdpriv->cmd_allocated_buf);` on the error path to release the resource and simplified the return logic of rtw_init_cmd_priv(). As there is no proper device to test with, no runtime testing was performed.

EPSS 0.16% · 5.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.0.3, 5.19.17, 5.15.75, 5.10.150, 5.4.220

Risk scores

EPSS Score
0.16%
5.1th percentile

Affected products

VendorProductVersions
LinuxLinux554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b
LinuxLinux4.12, 0, 5.4.220
linuxlinux_kernel4.12, 4.12, 4.12
LinuxLinux554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b

Timeline

  • Oct 7, 2025 CVE Published
  • Oct 8, 2025 EPSS Score (30 in total, the first dated here)
  • May 22, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory (74 in total, the first dated here)
  • Oct 7, 2026 Distribution Patch (51 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-50513
vulnetix vdb fixes CVE-2022-50513

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-50513/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›