What’s Vulnerable › Vulnerabilities

CVE-2022-49627: ima: Fix potential memory leak in ima_init_crypto()

Description

In the Linux kernel, the following vulnerability has been resolved: ima: Fix potential memory leak in ima_init_crypto() On failure to allocate the SHA1 tfm, IMA fails to initialize and exits without freeing the ima_algo_array. Add the missing kfree() for ima_algo_array to avoid the potential memory leak.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.132, 5.15.56, 5.18.13. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49627 or the next vulnerability affects your stack