A memory leak vulnerability was identified and fixed in the Linux kernel's cxgb4 driver within the cxgb4_init_ethtool_filters() function. The flaw occurs during error handling when allocating memory for loc_array and bmap arrays for each port. If loc_array allocation succeeds but bmap allocation fails, the previously allocated loc_array memory is not properly freed, causing a memory leak.