Memory Leak Vulnerability in Kernel

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002049: mm, slub: fix potential memoryleak in kmem_cache_open(). Affects Kernel versions >= 210e7a43fa905bccafa9bb5966fba1d71f33eb8b, < 568f906340b43120abd6fcc67c37396482f85930. No fix is published. 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 Kernel is a critical component of the Linux operating system that manages system resources and provides an interface for applications to interact with the hardware. It is responsible for memory management, process scheduling, device drivers, and other essential functions. The vulnerability identified in this report affects the Kernel's memory management subsystem, specifically the slub allocator. The slub allocator is responsible for managing kernel memory caches, which are used to efficiently allocate and deallocate memory for various kernel objects. This vulnerability can lead to a memory leak, where allocated memory is not properly released, potentially causing resource exhaustion and system instability.

Vulnerability Detail

The vulnerability, identified as GSD-2021-1002049, exists in the kmem_cache_open() function of the slub allocator in the Kernel. When a cache is opened, there is a potential memory leak if an error occurs during the initialization process. This can happen if the cache creation fails due to lack of memory or other reasons. If the error path is not handled correctly, the allocated memory for the cache may not be properly released, resulting in a memory leak. An attacker could potentially exploit this vulnerability to exhaust system resources, leading to denial of service or other security implications. The vulnerability was introduced in Kernel version 4.8 and has been fixed in version 5.10.76.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the Kernel is not immediately feasible, a temporary workaround can be implemented by avoiding the use of the kmem_cache_open() function in the affected code. Developers can consider using alternative memory allocation methods or caching mechanisms to mitigate the risk of memory leaks. It is recommended to consult the official documentation and seek guidance from the Kernel development community for appropriate alternatives.

Conclusion

The memory leak vulnerability in the Kernel's slub allocator can have serious consequences, including resource exhaustion and system instability. It is crucial to promptly update the Kernel to the fixed version or apply the recommended workaround to mitigate the risk. Regularly updating the Kernel and following secure coding practices are essential for maintaining a secure and stable system. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak, potentially causing resource exhaustion and system instability. It may also be exploited by attackers to launch denial of service attacks or other security exploits.

You can use tools like Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert Playground allows you to analyze your manifest file, such as package-lock.json, and provides real-time alerts for open-source vulnerabilities.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix or workaround to mitigate the risk.

This vulnerability requires local access to the system to exploit. However, if an attacker gains local access, they can potentially exploit this vulnerability to launch denial of service attacks or other malicious activities.

The primary mitigation is to update the Kernel to the fixed version. Additionally, developers can implement secure coding practices and perform regular security assessments to identify and address any potential vulnerabilities in their code.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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