Memory Leak Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001838: 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing essential functionality. It is a critical piece of software that interacts directly with hardware and enables the execution of user applications. The mm (memory management) subsystem in the Linux Kernel handles memory allocation and management. One of the key components of the mm subsystem is the slub allocator, which is responsible for managing kernel object caches. These caches improve performance by reducing the overhead of memory allocation and deallocation. However, a vulnerability has been discovered in the slub allocator that can lead to a memory leak.

Vulnerability Detail

The vulnerability, identified as GSD-2021-1001838, exists in the kmem_cache_open() function of the slub allocator in the Linux Kernel. When a cache is opened, the function allocates memory for the cache's data structures. However, under certain conditions, if the allocation fails, the function fails to free the previously allocated memory, resulting in a memory leak. This can lead to a gradual depletion of system memory, potentially causing performance degradation or even system instability. The vulnerability was introduced in version v4.8 of the Linux Kernel and has been fixed in version v5.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

As this vulnerability has been fixed in the latest version of the Linux Kernel, there is no specific workaround available. It is strongly advised to update to the patched version to mitigate the risk of memory leaks.

Conclusion

The memory leak vulnerability in the Linux Kernel's slub allocator can lead to a gradual depletion of system memory, potentially causing performance degradation and system instability. To mitigate this risk, it is crucial to update the Linux Kernel to version v5.10.76 or later. By doing so, the kmem_cache_open() function will properly handle memory allocation failures and prevent memory leaks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to a memory leak in the Linux Kernel, resulting in a gradual depletion of system memory. This can cause performance degradation and potentially lead to system instability.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for open-source vulnerabilities, including this memory leak vulnerability in the Linux Kernel.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to promptly update the Linux Kernel to the patched version to mitigate the risk.

This vulnerability does not have a direct remote exploitation vector. However, if an attacker gains control over a system running an outdated version of the Linux Kernel with this vulnerability, they may be able to leverage it for further attacks.

If updating the Linux Kernel is not immediately feasible, it is recommended to implement other security measures such as network segmentation, access controls, and monitoring to reduce the risk of exploitation.

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