Memory Leak Vulnerability in btrfs Kernel Package

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002708: btrfs: fix memory leak in __add_inode_ref(). Affects Kernel versions >= d3316c8233bb05e0dd855d30aac347bb8ad76ee4, < 005d9292b5b2e71a009f911bd85d755009b37242. 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 btrfs package is a part of the Linux Kernel ecosystem and is responsible for providing support for the B-tree file system. It offers advanced features such as snapshots, compression, and RAID-like functionality. The package is widely used in Linux distributions and is critical for managing file systems on Linux systems. However, a memory leak vulnerability has been identified in the package, which could lead to resource exhaustion and potential system instability.

Vulnerability Detail

The memory leak vulnerability in the btrfs package, specifically in the __add_inode_ref() function, allows an attacker to cause a memory leak by repeatedly adding references to an inode without properly releasing them. This can result in the consumption of excessive memory resources, leading to degraded system performance and potential denial-of-service conditions. The vulnerability was introduced in version v5.5 of the Linux Kernel and has been fixed in version v5.10.88.

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 workaround, users can mitigate the impact of the memory leak vulnerability by limiting the usage of the btrfs package or avoiding scenarios that trigger the vulnerability. However, it is strongly advised to apply the official fix by updating to the latest version of the Linux Kernel to ensure comprehensive protection against the vulnerability.

Conclusion

The memory leak vulnerability in the btrfs package can have significant consequences on system performance and stability. It is crucial to update the Linux Kernel to version v5.10.88 or later to mitigate this vulnerability. Applying the official fix will ensure the proper resolution of the memory leak issue and safeguard the system against potential exploitation. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to memory leaks, resource exhaustion, and potential system instability, which may result in degraded performance and denial-of-service conditions.

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 the playground will analyze it for any open-source vulnerabilities, including this memory leak vulnerability in the btrfs package.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the fix promptly to mitigate any potential risks.

Patching the vulnerability manually without updating the entire Linux Kernel may not be feasible or recommended. It is best to follow the official update process to ensure comprehensive protection and compatibility with other system components.

You can refer to the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) for detailed information about the fix and the vulnerability. Additionally, the vulnerability details are available in the GSD database (https://github.com/cloudsecurityalliance/gsd-database) maintained by the Cloud Security Alliance.

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