CVE-2022-50469

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

MEDIUM
5.5
CVSS Score
Published: October 1, 2025 at 11:45 AM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.12 ≤ v < 5.15.754.12 ≤ v < 5.19.174.12 ≤ v < 6.0.34.12 ≤ v < 6.15.16 ≤ v < 5.19.176.0 ≤ v < 6.0.34.12554c0a3abf216c991c5ebddcdb2c08689ecd290b
Vendor states this is fixed in 5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0 (fixed)
Vendor states this is fixed in 6b2052b365f8035ab7f09ac24b5b499002b298cb (fixed)
Vendor states this is fixed in b4573a2bad3c3e2643ef3939079eb7035a30e6ee (fixed)
Vendor states this is fixed in d95d1526d9f06978c1a7186810a5490d72c62742 (fixed)
Vendor states this is fixed in 4.12 (unaffected)
Vendor states this is fixed in 5.15.75 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card