CVE-2022-49627

ima: Fix potential memory leak in ima_init_crypto()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:23 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.565.16 ≤ v < 5.18.135.8 ≤ v < 5.10.1325.8 ≤ v < 5.15.565.8 ≤ v < 5.18.135.8 ≤ v < 5.195.19 rc15.19 rc25.19 rc35.19 rc45.19 rc55.19 rc66d94809af6b0830c4dfcad661535a5939bcb8a7d
Vendor states this is fixed in 067d2521874135267e681c19d42761c601d503d6 (fixed)
Vendor states this is fixed in 601ae26aa2802a4c10c94d7388a99eabdbefab2b (fixed)
Vendor states this is fixed in 830de9667b3ada0a75a3f098dfc7159709fe397b (fixed)
Vendor states this is fixed in c1d9702ceb4a091da6bee380627596d1fba09274 (fixed)
Vendor states this is fixed in 5.10.132 (unaffected)
Vendor states this is fixed in 5.15.56 (unaffected)
Vendor states this is fixed in 5.18.13 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.8 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/067d2521874135267e681c19d42761c601d503d6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/601ae26aa2802a4c10c94d7388a99eabdbefab2b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/830de9667b3ada0a75a3f098dfc7159709fe397b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c1d9702ceb4a091da6bee380627596d1fba09274

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card