Vulnerability in btrfs Package: Loop Length Issue during Defragmentation

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000601: btrfs: fix too long loop when defragging a 1 byte file. Affects Kernel versions >= 7b508037d4cac3bcde7187b70170caf81cae3aad, < bac3babdabdc53f8f47b513cff805b3b98c467bb. 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 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, pooling, and checksums. The package is widely used in Linux distributions and provides efficient storage management capabilities. However, a vulnerability has been identified in the btrfs package that can lead to a prolonged loop during the defragmentation process.

Vulnerability Detail

The vulnerability arises when attempting to defragment a file that consists of only one byte. Due to an issue in the code, the defragmentation loop becomes excessively long, resulting in a significant performance impact. Although the actual impact and attack plausibility have not been proven, this vulnerability has the potential to cause system slowdowns and resource exhaustion. It is important to note that this vulnerability has been fixed in Linux Kernel version v5.16.5.

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

No specific workaround has been mentioned for this vulnerability. The recommended approach is to apply the fix by updating the Linux Kernel to the latest version.

Conclusion

The vulnerability in the btrfs package, which caused a prolonged loop during defragmentation of a 1-byte file, has been addressed in Linux Kernel version v5.16.5. To ensure the security and optimal performance of systems utilizing the btrfs package, it is crucial to update the Linux Kernel to the latest version. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The btrfs package is a component of the Linux Kernel ecosystem that provides support for the B-tree file system. It offers advanced storage management features and is widely used in Linux distributions.

The vulnerability can cause a prolonged loop during the defragmentation process, leading to system slowdowns and resource exhaustion.

Yes, the vulnerability has been fixed in Linux Kernel version v5.16.5.

To fix this vulnerability, update the Linux Kernel to version v5.16.5 or later by obtaining the latest stable version from the official repository and following the installation instructions.

No specific workarounds have been mentioned. It is recommended to apply the fix by updating the Linux Kernel.

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