In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8712: fix a potential memory leak in r871xu_drv_init()
In r871xu_drv_init(), if r8712_init_drv_sw() fails, then the memory
allocated by r8712_alloc_io_queue() in r8712_usb_dvobj_init() is not
properly released as there is no action will be performed by
r8712_usb_dvobj_deinit().
To properly release it, we should call r8712_free_io_queue() in
r8712_usb_dvobj_deinit().
Besides, in r871xu_dev_remove(), r8712_usb_dvobj_deinit() will be called
by r871x_dev_unload() under condition `padapter->bup` and
r8712_free_io_queue() is called by r8712_free_drv_sw().
However, r8712_usb_dvobj_deinit() does not rely on `padapter->bup` and
calling r8712_free_io_queue() in r8712_free_drv_sw() is negative for
better understading the code.
So I move r8712_usb_dvobj_deinit() into r871xu_dev_remove(), and remove
r8712_free_io_queue() from r8712_free_drv_sw().
References
Configurations
Configuration 1 (hide)
|
History
17 Mar 2025, 19:54
Type | Values Removed | Values Added |
---|---|---|
Summary |
|
|
CWE | CWE-401 | |
CPE | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | |
References | () https://git.kernel.org/stable/c/205e039fead72e87ad2838f5e649a4c4834f648b - Patch | |
References | () https://git.kernel.org/stable/c/5a89a92efc342dd7c44b6056da87debc598f9c73 - Patch | |
References | () https://git.kernel.org/stable/c/7288ff561de650d4139fab80e9cb0da9b5b32434 - Patch | |
References | () https://git.kernel.org/stable/c/8eb42d6d10f8fe509117859defddf9e72b4fa4d0 - Patch | |
References | () https://git.kernel.org/stable/c/a2882b8baad068d21c99fb2ab5a85a2bdbd5b834 - Patch | |
First Time |
Linux
Linux linux Kernel |
|
CVSS |
v2 : v3 : |
v2 : unknown
v3 : 5.5 |
26 Feb 2025, 07:01
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2025-02-26 07:01
Updated : 2025-03-17 19:54
NVD link : CVE-2022-49312
Mitre link : CVE-2022-49312
CVE.ORG link : CVE-2022-49312
JSON object : View
Products Affected
linux
- linux_kernel
CWE
CWE-401
Missing Release of Memory after Effective Lifetime