Critical Vulnerability in Linux Package: Btrfs Buffered Write Path Error Handling

linux Updated 02 Oct 2025

Summary

17/08/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-42266: In the Linux kernel, the following vulnerability has been resolved: btrfs: make cow_file_range_inline() honor locked_page on error The btrfs buffered write path runs through extent_writepage() which has some tricky retur... Affects linux versions < 6.10.4-1. Fixed in 6.10.4-1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux package is a core component of the Debian operating system, providing essential functionalities for managing hardware and software resources. It is widely used in various environments, from servers to personal computers. The package includes the Btrfs file system, which is known for its advanced features like snapshots and dynamic volume management. However, it is susceptible to vulnerabilities that can lead to system instability and data loss.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the Btrfs file system's buffered write path. The issue arises from improper handling of return values in the __extent_writepage() function, which can lead to an assertion panic if a folio is unlocked unexpectedly. This vulnerability can result in critical errors, including IO failures and system crashes, as evidenced by the assertion failure in the btrfs_folio_end_all_writers() function. The root cause is linked to the handling of locked pages during write operations, which can compromise data integrity and system reliability.

How To Fix

Minimum fixed version

6.10.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. Users are advised to apply the patch as soon as it becomes available to avoid potential issues.

Conclusion

The identified vulnerability in the Linux package's Btrfs file system poses a significant risk to system stability and data integrity. Users are strongly encouraged to update to the patched version to safeguard their systems. Utilizing tools like Vulert can further enhance security by providing real-time monitoring of open-source vulnerabilities.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is related to improper error handling in the Btrfs file system's buffered write path, which can lead to assertion failures and system crashes.

You can use Vulert, which monitors open-source vulnerabilities in your software. By simply using a manifest file like package-lock.json, you can check for vulnerabilities without requiring code access.

Failure to address this vulnerability may result in system instability, data corruption, and potential crashes, affecting the overall performance and reliability of the system.

Yes, a patch is available in version 6.10.4-1 of the Linux package. Users should update to this version to mitigate the vulnerability.

Detailed information can be found in the Debian CVE database or by using Vulert's playground to check for vulnerabilities in your application.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.10.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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