Memory Leak Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001815: mm, slub: fix potential memoryleak in kmem_cache_open(). Affects Kernel versions >= 210e7a43fa905bccafa9bb5966fba1d71f33eb8b, < 4f5d1c29cfab5cb0ab885059818751bdef32e2bb. 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 Your last release was probably never penetration tested 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 the Linux operating system, responsible for managing system resources and providing essential functionality. It is a critical piece of software that enables the execution of user programs and facilitates communication between hardware and software components. The mm (memory management) subsystem within the Linux Kernel handles memory allocation and deallocation. One of the key components of the mm subsystem is the slub allocator, which manages kernel memory caches. These caches are used to efficiently allocate and deallocate memory for various kernel data structures. 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-1001815, exists in the kmem_cache_open() function of the slub allocator in the Linux Kernel. When a cache is opened, if an error occurs during the initialization process, the function fails to release 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.4.156.

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 a temporary workaround, users can mitigate the risk of memory leaks by avoiding the use of the kmem_cache_open() function in their applications. Instead, they can use alternative memory allocation methods or ensure proper error handling and cleanup routines are implemented to release any allocated memory in case of initialization failures.

Conclusion

In conclusion, a memory leak vulnerability has been identified in the slub allocator of the Linux Kernel. This vulnerability can lead to a gradual depletion of system memory and potential performance degradation or system instability. It is crucial to update the Linux Kernel to version v5.4.156 or later to mitigate this vulnerability. Alternatively, users can implement the provided workaround until the kernel update is available. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can result in a memory leak, leading to a gradual depletion of system memory. This can cause performance degradation and potentially system instability.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any 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 apply the necessary updates to mitigate the risk of potential exploitation.

While it is recommended to update the Linux Kernel to the fixed version, you can implement the temporary workaround mentioned in this report to mitigate the risk of memory leaks. However, it is still advisable to update to the latest kernel version as soon as possible.

You can refer to the vulnerability details in the GSD Database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001815.json) for more information, including the specific commits that introduced and fixed the vulnerability.

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