5.5

CVE-2022-50513: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()

Analyzed
AliasesUBUNTU-CVE-2022-50513DEBIAN-CVE-2022-50513
Published 07-10-2025Last modified 11-05-2026

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.16%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 6

Timeline

  1. 07-10-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

10 links