Vulnerability in btrfs Package: Return Whole Extents in fiemap

Kernel Updated 02 Oct 2025

Summary

04/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000541: btrfs: return whole extents in fiemap. Affects Kernel versions < afd1fca36d26f3896c99a363fc3dbe9c05411e3a. 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. It provides support for the B-tree file system, which is a modern copy-on-write (COW) file system that offers advanced features like snapshots, pooling, and checksums. The package is widely used in Linux distributions and is responsible for managing file systems on various storage devices.

Vulnerability Detail

This vulnerability in the btrfs package allows an attacker to obtain sensitive information by exploiting the fiemap functionality. The fiemap system call is used to retrieve information about file extents, which are contiguous blocks of data on disk. The vulnerability allows the attacker to retrieve whole extents, potentially exposing sensitive data that should have been fragmented or hidden. The impact of this vulnerability depends on the nature of the data stored on the file system and the permissions of the attacker. It is important to note that the actual impact and attack plausibility have not been proven yet.

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 disable the fiemap functionality in the btrfs package. This can be achieved by modifying the kernel configuration or by using kernel command-line parameters to disable the fiemap system call. However, this workaround may impact the functionality of certain applications or utilities that rely on the fiemap feature.

Conclusion

In conclusion, the btrfs package is vulnerable to an issue that allows an attacker to retrieve whole extents through the fiemap functionality. To mitigate this vulnerability, it is recommended to update the Linux Kernel to the latest version. Alternatively, users can disable the fiemap feature, but this may have implications for certain applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The btrfs package is a part of the Linux Kernel ecosystem and provides support for the B-tree file system.

The fiemap functionality is a system call in the btrfs package that retrieves information about file extents.

The impact of this vulnerability depends on the nature of the data stored on the file system and the permissions of the attacker.

To fix this vulnerability, update the Linux Kernel to version v5.12.9 or later.

Yes, you can disable the fiemap functionality in the btrfs package, but it may impact certain applications or utilities.

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