Home

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.

PUBLISHED Reserved 2025-10-01 | Published 2025-10-01 | Updated 2025-10-01 | Assigner Linux

Product status

Default status
unaffected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b4573a2bad3c3e2643ef3939079eb7035a30e6ee
affected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6b2052b365f8035ab7f09ac24b5b499002b298cb
affected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d95d1526d9f06978c1a7186810a5490d72c62742
affected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0
affected

Default status
affected

5.15.75
unaffected

5.19.17
unaffected

6.0.3
unaffected

6.1
unaffected

References

git.kernel.org/...c/b4573a2bad3c3e2643ef3939079eb7035a30e6ee

git.kernel.org/...c/6b2052b365f8035ab7f09ac24b5b499002b298cb

git.kernel.org/...c/d95d1526d9f06978c1a7186810a5490d72c62742

git.kernel.org/...c/5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0

cve.org (CVE-2022-50469)

nvd.nist.gov (CVE-2022-50469)

Download JSON