{"id":"CVE-2022-49312","published":"2025-02-26T02:10:41Z","modified":"2026-05-11T18:57:15Z","title":"staging: rtl8712: fix a potential memory leak in r871xu_drv_init()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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().","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00268,"percentile":0.19385,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/5a89a92efc342dd7c44b6056da87debc598f9c73","tags":[]},{"url":"https://git.kernel.org/stable/c/8eb42d6d10f8fe509117859defddf9e72b4fa4d0","tags":[]},{"url":"https://git.kernel.org/stable/c/205e039fead72e87ad2838f5e649a4c4834f648b","tags":[]},{"url":"https://git.kernel.org/stable/c/a2882b8baad068d21c99fb2ab5a85a2bdbd5b834","tags":[]},{"url":"https://git.kernel.org/stable/c/7288ff561de650d4139fab80e9cb0da9b5b32434","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.88},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef, < 5a89a92efc342dd7c44b6056da87debc598f9c73",">= 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef, < 8eb42d6d10f8fe509117859defddf9e72b4fa4d0",">= 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef, < 205e039fead72e87ad2838f5e649a4c4834f648b",">= 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef, < a2882b8baad068d21c99fb2ab5a85a2bdbd5b834",">= 2865d42c78a9121caad52cb02d1fbb7f5cdbc4ef, < 7288ff561de650d4139fab80e9cb0da9b5b32434"]},{"vendor":"Linux","product":"Linux","versions":["2.6.37"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:44:14.240096Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54915","exploited":false,"provenance":"source"}}