CVE-2022-49878
Linux Kernel vulnerability analysis and mitigation

Overview

A memory leak vulnerability was discovered in the Linux kernel's BPF verifier component (CVE-2022-49878). The issue occurs when krealloc() returns NULL during array reallocation for stack state, where callers of realloc_array() were incorrectly setting their allocation pointers to NULL while krealloc() maintains the original allocation. This vulnerability affects Linux kernel versions from 5.14 up to 6.1.rc4 (NVD).

Technical details

The vulnerability specifically affects the BPF verifier's array reallocation functionality for stack state. When krealloc() returns NULL indicating an error, the callers of realloc_array() were erroneously setting their allocation pointers to NULL. However, krealloc() does not modify the original allocation on error, leading to a memory leak. The issue has a CVSS v3.1 base score of 5.5 (MEDIUM) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Wiz).

Impact

The vulnerability results in a memory resource leak in the Linux kernel. While this may not lead to immediate system compromise, continuous memory leaks can degrade system performance and potentially lead to resource exhaustion over time (NVD, Wiz).

Exploitability

The vulnerability requires local access with low complexity and low privileges to exploit. No user interaction is needed. There are no known public exploits for this vulnerability (Wiz).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that properly handles the error case by freeing the old allocation on the error handling path (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fips
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-tegra-5.15
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-fips
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoYesSep 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management