All reports
Medium

kernel: ima: Fix potential memory leak in ima_init_crypto()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-49627

Probability of exploitation in the next 30 days: 0.27%

FIRST EPSS · 2026-11-21

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.

A flaw was found in the Linux kernel's Integrity Measurement Architecture (IMA). This flaw can lead to a Denial of Service (DoS) caused by a memory leak during system startup. If the subsystem encounters an error while allocating cryptographic resources in the ima_init_crypto() function, it exits without releasing previously allocated memory structures. Under specific resource-constrained boot conditions, this failure leaves kernel memory permanently unrecovered.