5.5medium
ima: Fix potential memory leak in ima_init_crypto()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 6d94809af6b0830c4dfcad661535a5939bcb8a7d before c1d9702ceb4a091da6bee380627596d1fba09274, from 6d94809af6b0830c4dfcad661535a5939bcb8a7d before 601ae26aa2802a4c10c94d7388a99eabdbefab2b, from 6d94809af6b0830c4dfcad661535a5939bcb8a7d before 830de9667b3ada0a75a3f098dfc7159709fe397b, from 6d94809af6b0830c4dfcad661535a5939bcb8a7d before 067d2521874135267e681c19d42761c601d503d6, 5.8 Not affected: before 5.8, from 5.10.132 up to 5.10.*, from 5.15.56 up to 5.15.*, from 5.18.13 up to 5.18.*, from 5.19 up to * | CVE List |
| linux 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 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ima: Se solucionó una posible pérdida de memoria en ima_init_crypto(). Si no se puede asignar el tfm SHA1, IMA no se inicializa y sale sin liberar ima_algo_array. Agregue el kfree() faltante para ima_algo_array para evitar la posible pérdida de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49627 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49627 changed 2026-06-17 | Public domain |