CVE & CISA-KEV Catalog

CVE-2022-50577

UNSCORED

Description

In the Linux kernel, the following vulnerability has been resolved: ima: Fix memory leak in __ima_inode_hash() Commit f3cc6b25dcc5 ("ima: always measure and audit files in policy") lets measurement or audit happen even if the file digest cannot be calculated. As a result, iint->ima_hash could have been allocated despite ima_collect_measurement() returning an error. Since ima_hash belongs to a temporary inode metadata structure, declared at the beginning of __ima_inode_hash(), just add a kfree() call if ima_collect_measurement() returns an error different from -ENOMEM (in that case, ima_hash should not have been allocated).

How to fix

Remediation Available
linuxDebian
Fixed in:6.1.4-1CVE-2022-50577
Fixed in:6.1.4-1CVE-2022-50577
Fixed in:6.1.4-1CVE-2022-50577

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3.1 Vector

No CVSS vector data available.

Exploit Intelligence

0.19%probability of exploitation in 30 days
9thpercentile

Low risk: more likely to be exploited than 9% of all known CVEs.

References

Embed a live status badge for CVE-2022-50577
CVE-2022-50577 severity badge

Markdown

[![CVE-2022-50577](https://tridentstack.com/cve/badge/CVE-2022-50577.svg)](https://tridentstack.com/cve/CVE-2022-50577)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-50577"><img src="https://tridentstack.com/cve/badge/CVE-2022-50577.svg" alt="CVE-2022-50577"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-22.