CVE-2022-50513: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()
Vulnerability summary
CVE-2022-50513 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5.1% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 6Timeline
- 07-10-2025PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.16%
Chance of exploitation in the next 30 days
Percentile
5%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.16% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu120 products
- linuxAll versions (No fix recorded) | < 5.4.0-139.156 | < 5.15.0-60.66
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.4.0-1096.104 | < 5.15.0-1030.34
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < e5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2 | ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < e6cc39db24a63f68314473621020ed8cad7be423 | ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 39bef9c6a91bbb790d04c1347cfeae584541fb6a | ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < a5be64ff6d21f7805a91e6d81f53fc19cd9f0fae | ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 8db6ca84eee0ac258706f3fca54f7c021cb159ef | ≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 708056fba733a73d926772ea4ce9a42d240345da | 4.12
- linux_kernel≥ 4.12, < 5.4.220 | ≥ 5.5, < 5.10.150 | ≥ 5.11, < 5.15.75 | ≥ 5.16, < 5.19.17 | ≥ 6.0, < 6.0.3
Debian1 product
- linux< 6.0.3-1
3 vendors · 123 products