Vulnerability in btrfs: Return Whole Extents in fiemap

Kernel Updated 02 Oct 2025

Summary

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

UVI-2021-1000624: btrfs: return whole extents in fiemap. Affects Kernel versions < 55575c08502f291cdeff09428189b84084ffa91b. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The btrfs package is a part of the Linux Kernel ecosystem and is responsible for providing support for the B-tree file system. Btrfs is designed to offer advanced features such as snapshots, pooling, and checksums, making it suitable for use in modern storage systems. However, a vulnerability has been discovered in btrfs that affects the way it handles fiemap requests.

Vulnerability Detail

The vulnerability in btrfs allows an attacker to obtain whole extents in fiemap requests. This can potentially lead to unauthorized access to sensitive data or the ability to modify data within the file system. The vulnerability was introduced in an earlier version of the Linux Kernel and has been fixed in version v5.4.124 by commit 55575c08502f291cdeff09428189b84084ffa91b.

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

If updating the Linux Kernel is not immediately feasible, a possible workaround is to restrict access to the affected system and ensure that only trusted users have permissions to access sensitive data. Additionally, implementing strict access controls and monitoring file system activity can help detect any unauthorized access or modifications.

Conclusion

In conclusion, the vulnerability in btrfs that allows the retrieval of whole extents in fiemap requests can lead to unauthorized access or modification of data. It is crucial to update the Linux Kernel to the fixed version or implement appropriate workarounds to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

Btrfs is a file system that provides advanced features such as snapshots, pooling, and checksums. It is commonly used in modern storage systems.

Fiemap is an ioctl interface in the Linux Kernel that allows applications to retrieve information about file extents, which are contiguous ranges of data within a file.

This vulnerability allows an attacker to obtain whole extents in fiemap requests, potentially leading to unauthorized access to sensitive data or the ability to modify data within the file system.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.4.124 or later.

If updating the Linux Kernel is not immediately feasible, restricting access to the affected system and implementing strict access controls can help mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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