CVE-2022-50513
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2022
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | e5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2 | Unavailable | None listed |
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | e6cc39db24a63f68314473621020ed8cad7be423 | Unavailable | None listed |
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | 39bef9c6a91bbb790d04c1347cfeae584541fb6a | Unavailable | None listed |
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | a5be64ff6d21f7805a91e6d81f53fc19cd9f0fae | Unavailable | None listed |
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | 8db6ca84eee0ac258706f3fca54f7c021cb159ef | Unavailable | None listed |
| 554c0a3abf216c991c5ebddcdb2c08689ecd290b | affected | git | 708056fba733a73d926772ea4ce9a42d240345da | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 4.12 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 4.12 | Unavailable | None listed |
| 5.4.220 | unaffected | semver | Unavailable | 5.4.* | None listed |
| 5.10.150 | unaffected | semver | Unavailable | 5.10.* | None listed |
| 5.15.75 | unaffected | semver | Unavailable | 5.15.* | None listed |
| 5.19.17 | unaffected | semver | Unavailable | 5.19.* | None listed |
| 6.0.3 | unaffected | semver | Unavailable | 6.0.* | None listed |
| 6.1 | unaffected | original_commit_for_fix | Unavailable | * | None listed |