CVE-2022-50513
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.0.3, 5.19.17, 5.15.75, 5.10.150, 5.4.220 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b, 554c0a3abf216c991c5ebddcdb2c08689ecd290b |
| Linux | Linux | 4.12, 0, 5.4.220 |
| linux | linux_kernel | 4.12, 4.12, 4.12 |
| Linux | Linux | 554c0a3abf216c991c5ebddcdb2c08689ecd290b, 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