Vulnerability in btrfs Defragmentation Functionality

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000723: btrfs: defrag: allow defrag_one_cluster() to skip large extent which is not a target. Affects Kernel versions < 833df0a3d38c4d5bd3cd84b8dd38855792aa6573. 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 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, checksums, and efficient data storage. The defragmentation functionality within btrfs aims to optimize file system performance by rearranging data clusters. However, a vulnerability has been discovered in this functionality.

Vulnerability Detail

The vulnerability in the btrfs defragmentation functionality allows the defrag_one_cluster() function to skip a large extent that is not the target of defragmentation. This can lead to suboptimal defragmentation results and potential performance issues. The vulnerability has been assigned the ID GSD-2022-1000723 and has been fixed in Linux Kernel version v5.16.12 by commit 833df0a3d38c4d5bd3cd84b8dd38855792aa6573.

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 →

Conclusion

The vulnerability in the btrfs defragmentation functionality can result in suboptimal defragmentation and potential performance issues. It is crucial to update the Linux Kernel to version v5.16.12 or later to mitigate this vulnerability. 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 suboptimal defragmentation and potential performance issues in the btrfs file system.

There is no known exploit for this vulnerability at the moment.

No, this vulnerability does not directly lead to data loss. However, it can impact file system performance.

No, the vulnerability is fixed in Linux Kernel version v5.16.12 and later.

No, updating the Linux Kernel to the fixed version is the recommended solution.

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