CVE & CISA-KEV Catalog

CVE-2022-49890

MEDIUM
5.5
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: capabilities: fix potential memleak on error path from vfs_getxattr_alloc() In cap_inode_getsecurity(), we will use vfs_getxattr_alloc() to complete the memory allocation of tmpbuf, if we have completed the memory allocation of tmpbuf, but failed to call handler->get(...), there will be a memleak in below logic: |-- ret = (int)vfs_getxattr_alloc(mnt_userns, ...) | /* ^^^ alloc for tmpbuf */ |-- value = krealloc(*xattr_value, error + 1, flags) | /* ^^^ alloc memory */ |-- error = handler->get(handler, ...) | /* error! */ |-- *xattr_value = value | /* xattr_value is &tmpbuf (memory leak!) */ So we will try to free(tmpbuf) after vfs_getxattr_alloc() fails to fix it. [PM: subject line and backtrace tweaks]

How to fix

Remediation Available
linuxDebian
Fixed in:5.10.158-1CVE-2022-49890
Fixed in:6.0.8-1CVE-2022-49890
Fixed in:6.0.8-1CVE-2022-49890
Fixed in:6.0.8-1CVE-2022-49890
bpftoolRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
bpftoolRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
bpftool-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
bpftool-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernelRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernelRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-abi-stablelistsRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-abi-stablelistsRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-coreRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-coreRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debugRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debugRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-coreRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-coreRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-develRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-develRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-modulesRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-modulesRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-modules-extraRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debug-modules-extraRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-aarch64Rocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-aarch64Red Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-ppc64leRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-ppc64leRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-s390xRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-s390xRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-x86_64Rocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-debuginfo-common-x86_64Red Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-develRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-develRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-docRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-docRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-modulesRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-modulesRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-modules-extraRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-modules-extraRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-toolsRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-toolsRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-libsRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-libsRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-libs-develRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-tools-libs-develRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdumpRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdumpRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-coreRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-coreRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-develRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-develRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-modulesRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-modulesRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-modules-extraRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
kernel-zfcpdump-modules-extraRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
perfRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
perfRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
perf-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
perf-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
python3-perfRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
python3-perfRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
python3-perf-debuginfoRed Hat / RHEL
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
python3-perf-debuginfoRocky
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077
Fixed in:0:4.18.0-513.5.1.el8_9RHSA-2023:7077

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

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.19%probability of exploitation in 30 days
8thpercentile

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

References

Related Vulnerabilities

Other CWE-401 (Missing Release of Memory (Memory Leak)) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-13934High7.564%-Fix
CVE-2016-6304High7.563%-Fix
CVE-2019-12265Medium5.355%-Fix
CVE-2001-0136Medium5.045%--
CVE-2016-4232High7.536%--
CVE-2001-0543Medium5.021%--
Embed a live status badge for CVE-2022-49890
CVE-2022-49890 severity badge

Markdown

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

HTML

<a href="https://tridentstack.com/cve/CVE-2022-49890"><img src="https://tridentstack.com/cve/badge/CVE-2022-49890.svg" alt="CVE-2022-49890"></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-01.