CVE-2022-50469 Details
Description
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.
A memory leak vulnerability has been identified in the Linux kernel's RTL8723BS staging driver, specifically within the 'rtw_init_drv_sw()' function. This vulnerability arises because several initialization functions, which populate the 'padapter' structure, do not properly release previously allocated resources in most error handling paths. As a result, this oversight can lead to significant memory leaks. The issue has been addressed by modifying the function to ensure that all allocated resources are correctly freed in the event of an error, thereby preventing the memory leak. However, it's important to note that these changes maintain the original structure of 'rtw_init_drv_sw()' as found in 'drivers/staging/r8188eu/os_dep/os_intfs.c'. No runtime testing was conducted due to the lack of a suitable device for verification.
Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability. Instructions for downloading the patched version can be found in the Linux kernel Git repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6b2052b365f8035ab7f09ac24b5b499002b298cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/b4573a2bad3c3e2643ef3939079eb7035a30e6ee | kernel.org | Patch |
| https://git.kernel.org/stable/c/d95d1526d9f06978c1a7186810a5490d72c62742 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.12, < 5.15.75 >= 5.16, < 5.19.17 >= 6.0, < 6.0.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 16, 2026 | Initial Analysis | [email protected] |
| Oct 1, 2025 | New CVE Received | kernel.org |