Vulnerability in btrfs_replace_file_extents in Kernel

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001862: btrfs: fix abort logic in btrfs_replace_file_extents. Affects Kernel versions < 0e32a2b85c7d92ece86c17dfef390c5ed79c6378. 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 Kernel is a crucial component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionality for file systems, device drivers, and system processes. One of the features supported by the Kernel is the Btrfs file system, which offers advanced capabilities such as snapshots, compression, 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 Kernel's Btrfs file system implementation contains a flaw that could lead to an incorrect abort logic. This vulnerability may allow an attacker to manipulate file extents in a way that could result in data corruption or denial of service. By exploiting this vulnerability, an attacker could potentially gain unauthorized access to sensitive information or disrupt the normal operation of the system. The vulnerability has been addressed in Linux Kernel version v5.10.75 by commit 0e32a2b85c7d92ece86c17dfef390c5ed79c6378.

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 known workaround for this vulnerability. It is essential to apply the provided fix by updating the Linux Kernel to the patched version.

Conclusion

The vulnerability in the btrfs_replace_file_extents function of the Kernel's Btrfs file system implementation could potentially lead to data corruption or denial of service. It is crucial to update the Linux Kernel to version v5.10.75 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

This vulnerability could potentially lead to data corruption or denial of service, allowing attackers to gain unauthorized access to sensitive information or disrupt system operations.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is crucial to apply the provided fix to mitigate any potential risks.

This vulnerability requires local access to the system. However, if an attacker gains local access, they could potentially exploit this vulnerability to compromise the system.

Unfortunately, there are no known mitigations or workarounds for this vulnerability. It is highly recommended to update the Kernel as soon as possible to ensure the security of your system.

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