Bug 2347859 (CVE-2022-49627) - CVE-2022-49627 kernel: ima: Fix potential memory leak in ima_init_crypto()
Summary: CVE-2022-49627 kernel: ima: Fix potential memory leak in ima_init_crypto()
Keywords:
Status: NEW
Alias: CVE-2022-49627
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:09 UTC by OSIDB Bzimport
Modified: 2025-02-26 17:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:09:14 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 13:36:47 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022616-CVE-2022-49627-ec2b@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 17:48:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022616-CVE-2022-49627-ec2b@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.