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-1002081: btrfs: fix abort logic in btrfs_replace_file_extents. Affects Kernel versions < 0e309e1152fc34ef75991d9d69b165dbf75bf26c. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a fundamental component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and supports various file systems. The btrfs file system is one of the supported file systems in the Kernel. It is a modern copy-on-write file system that offers advanced features like snapshots, checksums, and RAID-like capabilities. However, a vulnerability has been identified 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 and attack plausibility of this vulnerability have not been proven yet, but it is essential to address it to ensure the security and stability of the system.

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 mentioned for this vulnerability. However, users can mitigate the risk by applying the recommended fix and updating their Kernel to the latest version.

Conclusion

The vulnerability in the btrfs_replace_file_extents function of the Kernel's btrfs file system could potentially lead to a denial-of-service (DoS) condition or allow arbitrary code execution with elevated privileges. It is crucial to update the Linux Kernel to version v5.14.14 or later to address this vulnerability. Keeping systems up to date with the latest security patches is essential for maintaining the security and stability of the system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could potentially lead to a denial-of-service (DoS) condition or allow an attacker to execute arbitrary code with elevated privileges. It may result in data corruption or system instability.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

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

The details regarding remote exploitation have not been provided. However, it is always recommended to keep systems up to date to address potential security vulnerabilities.

The recommended solution is to update the Linux Kernel to the latest version. Alternative solutions may not provide the necessary patches and security enhancements to address this specific vulnerability.

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