What’s Vulnerable › Vulnerabilities
CVE-2022-49627: ima: Fix potential memory leak in ima_init_crypto()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
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
- Linux kernel: from 5.8 before 5.10.132; from 5.11 before 5.15.56; from 5.16 before 5.18.13; 5.19-rc1, 5.19-rc2, 5.19-rc3, 5.19-rc4, 5.19-rc5, 5.19-rc6 — fixed in 5.10.132, 5.15.56, 5.18.13
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
- https://git.kernel.org/stable/c/067d2521874135267e681c19d42761c601d503d6
- https://git.kernel.org/stable/c/601ae26aa2802a4c10c94d7388a99eabdbefab2b
- https://git.kernel.org/stable/c/830de9667b3ada0a75a3f098dfc7159709fe397b
- https://git.kernel.org/stable/c/c1d9702ceb4a091da6bee380627596d1fba09274
Get alerted when CVE-2022-49627 or the next vulnerability affects your stack