Vulnerability in btrfs_replace_file_extents in Kernel

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002153: btrfs: fix abort logic in btrfs_replace_file_extents. Affects Kernel versions < 4afb912f439c4bc4e6a4f3e7547f2e69e354108f. 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 Kernel is a critical component of the Linux operating system that provides core functionality and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and enables the execution of user programs. The btrfs file system is a modern copy-on-write (COW) file system that is part of the Kernel. It offers advanced features such as snapshots, checksums, and RAID-like functionality. However, a vulnerability has been discovered in the btrfs_replace_file_extents function, which could potentially be exploited by attackers.

Vulnerability Detail

The btrfs_replace_file_extents function in the btrfs file system has a flaw in its abort logic. This vulnerability could allow an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code with elevated privileges. By exploiting this vulnerability, an attacker could manipulate file extents in a way that leads to data corruption or system instability. The impact of this vulnerability depends on the attacker's capabilities and the specific context in which the btrfs file system is used.

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

There is no specific workaround available for this vulnerability. It is essential to apply the recommended fix by updating the Linux Kernel to the latest stable version.

Conclusion

The btrfs_replace_file_extents vulnerability in the Kernel's btrfs file system could allow an attacker to cause a denial-of-service (DoS) condition, data corruption, or execute arbitrary code with elevated privileges. To mitigate this vulnerability, it is crucial to update the Linux Kernel to version v5.15 or later. This update includes the necessary patch to fix the flaw in the btrfs_replace_file_extents function. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the attacker's capabilities and the specific context in which the btrfs file system is used. It could potentially lead to a denial-of-service (DoS) condition, data corruption, or arbitrary code execution with elevated privileges.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

Yes, a patch for this vulnerability is available in the Linux Kernel version v5.15 or later. It is recommended to update the Kernel to the latest stable version to apply the fix.

At the time of this report, there are no known public exploits for this vulnerability. However, it is crucial to apply the recommended fix to mitigate the risk.

The exploitation of this vulnerability typically requires local access to the system. However, if an attacker gains local access, they could potentially exploit the vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition.

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