In the Linux kernel, the following vulnerability has been resolved: firmware_loader: Fix possible resource leak in fw_log_firmware_info() The alg instance should be released under the exception path, otherwise there may be resource leak here. To mitigate this, free the alg instance with crypto_free_shash when kmalloc fails.
https://git.kernel.org/stable/c/f380f895dbb2a11d62ca6df9e82d995f4bc26b84
https://git.kernel.org/stable/c/eb5d67d00ad17a5bd0920f455160dc2ccbd2dc78
https://git.kernel.org/stable/c/789a72498d32f88d24371c10985aceb46397056c
https://git.kernel.org/stable/c/369a9c046c2fdfe037f05b43b84c386bdbccc103