In the Linux kernel, the following vulnerability has been resolved:
firmwareloader: Fix possible resource leak in fwlogfirmwareinfo()
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 cryptofreeshash when kmalloc fails.