cbcvebase.
CVE-2022-50513
published 2025-10-07

CVE-2022-50513: In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv() In…

PriorityP417medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.15%
4.4th percentile
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.

Affected

17 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.0.3-1 (bookworm)linux 6.0.3-1 (bookworm)
linuxlinux
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < e5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2e5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < e6cc39db24a63f68314473621020ed8cad7be423e6cc39db24a63f68314473621020ed8cad7be423
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 39bef9c6a91bbb790d04c1347cfeae584541fb6a39bef9c6a91bbb790d04c1347cfeae584541fb6a
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < a5be64ff6d21f7805a91e6d81f53fc19cd9f0faea5be64ff6d21f7805a91e6d81f53fc19cd9f0fae
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 8db6ca84eee0ac258706f3fca54f7c021cb159ef8db6ca84eee0ac258706f3fca54f7c021cb159ef
linuxlinux>= 554c0a3abf216c991c5ebddcdb2c08689ecd290b < 708056fba733a73d926772ea4ce9a42d240345da708056fba733a73d926772ea4ce9a42d240345da
linuxlinux_kernel>= 0 < 5.10.158-15.10.158-1
linuxlinux_kernel>= 0 < 6.0.3-16.0.3-1
linuxlinux_kernel>= 0 < 6.0.3-16.0.3-1
linuxlinux_kernel>= 0 < 6.0.3-16.0.3-1
linuxlinux_kernel>= 4.12 < 5.4.2205.4.220
linuxlinux_kernel>= 5.11 < 5.15.755.15.75
linuxlinux_kernel>= 5.16 < 5.19.175.19.17
linuxlinux_kernel>= 5.5 < 5.10.1505.10.150
linuxlinux_kernel>= 6.0 < 6.0.36.0.3

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.