Memory Leak Vulnerability in Linux Kernel - CVE-2022-49334

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Medium
5.5

CVE-2022-49334: In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: Fix xarray node memory leak If xas_split_alloc() fails to allocate the necessary nodes to complete the xarray entry split, it sets the x... Affects linux versions < 5.18.5-1. Fixed in 5.18.5-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, responsible for managing hardware resources and providing essential services to software applications. It is known for its stability, performance, and security features. However, like any complex software, it is susceptible to vulnerabilities that can affect its functionality and security. CVE-2022-49334 addresses a specific issue related to memory management within the kernel's huge memory subsystem.

Vulnerability Detail

CVE-2022-49334 is a vulnerability in the Linux kernel's memory management system, specifically in the handling of xarrays. The issue arises when the function xas_split_alloc() fails to allocate the necessary nodes for splitting an xarray entry. Instead of properly freeing unnecessary memory, the function incorrectly sets the xa_state to -ENOMEM, which leads to confusion in memory management. This can result in a memory leak, potentially degrading system performance and stability over time.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the available patch by updating the Linux kernel to the fixed version.

Conclusion

CVE-2022-49334 is a significant vulnerability in the Linux kernel that can lead to memory leaks if not addressed. Users are encouraged to update their systems to the patched version to mitigate potential risks. Regular monitoring and timely updates are essential for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49334 is a vulnerability in the Linux kernel related to memory management that can lead to memory leaks.

If exploited, this vulnerability can cause memory leaks, potentially leading to degraded system performance and stability.

Versions of the Linux kernel prior to 5.18.5-1 are affected by this vulnerability. Check your kernel version to determine if you need to update.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

While there are no specific workarounds, it is recommended to monitor your system for unusual behavior and plan to update as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback