CVE-2022-50513Missing Release of Memory after Effective Lifetime in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 97.23%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 7

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->

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel4.125.4.220+4
Debianlinux/linux_kernel< 5.10.158-1+3
CVEListV5linux/linux554c0a3abf216c991c5ebddcdb2c08689ecd290be5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2+6
debiandebian/linux< linux 6.0.3-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-vvwr-r28w-f48x: In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv() In rtw_in2025-10-07
OSV
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 rtw_init2025-10-07

📋Vendor Advisories

2
Red Hat
kernel: staging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()2025-10-07
Debian
CVE-2022-50513: linux - In the Linux kernel, the following vulnerability has been resolved: staging: rt...2022