Memory Leak in Linux Kernel's DVB USB Adapter Initialization
CVE-2022-50626
What is CVE-2022-50626?
A memory leak has been identified in the initialization process of the DVB USB adapter in the Linux kernel. The defect arises when the system fails to correctly release memory allocated for 'adap->priv' during error handling. If an error occurs in key functions like 'dvb_usb_adapter_stream_init()', 'dvb_usb_adapter_dvb_init()', or 'dvb_usb_adapter_frontend_init()', the memory allocated for the current iteration's 'adapter->priv' does not get properly freed before exiting the function, resulting in unaccounted memory being leaked. The vulnerability has been addressed by adding necessary checks to ensure memory is appropriately freed, thereby resolving the leak and maintaining system stability.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 733bc9e226da2a7f43b10031b8ebfc26d89ec4bd
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 21b6b0c9f3796e6917e90db403dae9e74025fc40