{"schema_version":"1.9.0","id":"CVE-2022-49312","published":"2025-02-26T02:10:41.627Z","modified":"2026-08-12T03:51:39.813389538Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"summary":"staging: rtl8712: fix a potential memory leak in r871xu_drv_init()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: rtl8712: fix a potential memory leak in r871xu_drv_init()\n\nIn r871xu_drv_init(), if r8712_init_drv_sw() fails, then the memory\nallocated by r8712_alloc_io_queue() in r8712_usb_dvobj_init() is not\nproperly released as there is no action will be performed by\nr8712_usb_dvobj_deinit().\nTo properly release it, we should call r8712_free_io_queue() in\nr8712_usb_dvobj_deinit().\n\nBesides, in r871xu_dev_remove(), r8712_usb_dvobj_deinit() will be called\nby r871x_dev_unload() under condition `padapter->bup` and\nr8712_free_io_queue() is called by r8712_free_drv_sw().\nHowever, r8712_usb_dvobj_deinit() does not rely on `padapter->bup` and\ncalling r8712_free_io_queue() in r8712_free_drv_sw() is negative for\nbetter understading the code.\nSo I move r8712_usb_dvobj_deinit() into r871xu_dev_remove(), and remove\nr8712_free_io_queue() from r8712_free_drv_sw().","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef"},{"fixed":"5a89a92efc342dd7c44b6056da87debc598f9c73"},{"fixed":"8eb42d6d10f8fe509117859defddf9e72b4fa4d0"},{"fixed":"205e039fead72e87ad2838f5e649a4c4834f648b"},{"fixed":"a2882b8baad068d21c99fb2ab5a85a2bdbd5b834"},{"fixed":"7288ff561de650d4139fab80e9cb0da9b5b32434"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49312.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.37"},{"fixed":"5.10.122"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.47"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.17.15"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"5.18.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49312.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/205e039fead72e87ad2838f5e649a4c4834f648b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a89a92efc342dd7c44b6056da87debc598f9c73"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7288ff561de650d4139fab80e9cb0da9b5b32434"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8eb42d6d10f8fe509117859defddf9e72b4fa4d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2882b8baad068d21c99fb2ab5a85a2bdbd5b834"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49312.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49312"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49312.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}