CVE-2022-50469

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

No CVSS score yet EPSS 0.16%

Published 1 Oct 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50469

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50469 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.04% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 554c0a3abf216c991c5ebddcdb2c08689ecd290b, before b4573a2bad3c3e2643ef3939079eb7035a30e6ee
affected from 554c0a3abf216c991c5ebddcdb2c08689ecd290b, before 6b2052b365f8035ab7f09ac24b5b499002b298cb
affected from 554c0a3abf216c991c5ebddcdb2c08689ecd290b, before d95d1526d9f06978c1a7186810a5490d72c62742
affected from 554c0a3abf216c991c5ebddcdb2c08689ecd290b, before 5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0
Other versions: unaffected
Linux
affected 4.12
unaffected before 4.12
unaffected from 5.15.75 up to and including 5.15.*
unaffected from 5.19.17 up to and including 5.19.*
unaffected from 6.0.3 up to and including 6.0.*
unaffected 6.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50469 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50469

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50469
trivy image --scanners vuln IMAGE | grep CVE-2022-50469

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50469 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.