In the Linux kernel, the following vulnerability has been resolved: wifi: mm81x: free the firmware scratch buffer on parse failures mm81x_fw_load_fw() allocates fw_buf before it inspects the image, but releases it only on the success path. The two early returns taken for a malformed image leave one firmware-sized allocation attached to the device, and mm81x_fw_flash() retries the load three times. Release it on those paths too, the way mm81x_fw_load_bcf() already does.
https://git.kernel.org/stable/c/87230a514d2ca128c3fcd96126bb18162459640f
https://git.kernel.org/stable/c/3d80571f71eb996677d179e1347e973725cd97ad