CVE-2022-49627Published Feb 26, 2025 · Feb 26Updated Oct 28
ima: Fix potential memory leak in ima_init_crypto()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's IMA initialization can leak memory if allocation of the SHA1 tfm fails: initialization exits without freeing ima_algo_array. The input does not describe an attacker, access requirements, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.