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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-26T02:23:41.763Z
- Modified: 2026-06-17T05:18:40.290Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c1d9702ceb4a091da6bee380627596d1fba09274> (patch)
- <https://git.kernel.org/stable/c/601ae26aa2802a4c10c94d7388a99eabdbefab2b> (patch)
- <https://git.kernel.org/stable/c/830de9667b3ada0a75a3f098dfc7159709fe397b> (patch)
- <https://git.kernel.org/stable/c/067d2521874135267e681c19d42761c601d503d6> (patch)

## Sources

- CVE List: [CVE-2022-49627](https://www.cve.org/CVERecord?id=CVE-2022-49627), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49627](https://nvd.nist.gov/vuln/detail/CVE-2022-49627), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49627 · Whole record: https://cve.day/CVE-2022-49627.json · Rebuilt by cve.day 2026-11-25T22:58:20.768Z
