{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-50513","published":"2025-10-07T16:15:34.860000Z","last_modified":"2026-06-17T05:23:41.970000Z","status":"Analyzed","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-401"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.12","version_end_excluding":"5.4.220"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.150"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.75"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"5.19.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.0","version_end_excluding":"6.0.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"epss":{"score":0.0022,"percentile":0.07451,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2022-50513/","html_en":"/en/cve/CVE-2022-50513/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50513","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50513"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8723bs: fix a potential memory leak in rtw_init_cmd_priv()\n\nIn rtw_init_cmd_priv(), if `pcmdpriv->rsp_allocated_buf` is allocated\nin failure, then `pcmdpriv->cmd_allocated_buf` will be not properly\nreleased. Besides, considering there are only two error paths and the\nfirst one can directly return, so we do not need implicitly jump to the\n`exit` tag to execute the error handler.\n\nSo this patch added `kfree(pcmdpriv->cmd_allocated_buf);` on the error\npath to release the resource and simplified the return logic of\nrtw_init_cmd_priv(). As there is no proper device to test with, no runtime\ntesting was performed.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/39bef9c6a91bbb790d04c1347cfeae584541fb6a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/708056fba733a73d926772ea4ce9a42d240345da","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/8db6ca84eee0ac258706f3fca54f7c021cb159ef","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/a5be64ff6d21f7805a91e6d81f53fc19cd9f0fae","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e5d8f05edb36fc4ab15beec62cb6ab62f5a60fe2","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e6cc39db24a63f68314473621020ed8cad7be423","tags":["Patch"]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2025:4320-1","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20254320-1/","published":"2025-12-04T10:04:32+00:00","severity":"high","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}}]}