Bug 2400778 (CVE-2022-50469) - CVE-2022-50469 kernel: staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()
Summary: CVE-2022-50469 kernel: staging: rtl8723bs: fix potential memory leak in rtw_i...
Keywords:
Status: NEW
Alias: CVE-2022-50469
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-01 12:06 UTC by OSIDB Bzimport
Modified: 2025-10-01 19:51 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-10-01 12:06:52 UTC
In the Linux kernel, the following vulnerability has been resolved:

staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()

In rtw_init_drv_sw(), there are various init functions are called to
populate the padapter structure and some checks for their return value.
However, except for the first one error path, the other five error paths
do not properly release the previous allocated resources, which leads to
various memory leaks.

This patch fixes them and keeps the success and error separate.
Note that these changes keep the form of `rtw_init_drv_sw()` in
"drivers/staging/r8188eu/os_dep/os_intfs.c". As there is no proper device
to test with, no runtime testing was performed.


Note You need to log in before you can comment on or make changes to this bug.