Critical Kernel Vulnerability in Linux Package: Btrfs Double Accounting Race Condition

linux Updated 02 Oct 2025

Summary

12/03/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-58089: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double accounting race when btrfs_run_delalloc_range() failed [BUG] When running btrfs with block size (4K) smaller than page size (64K, aarc... Affects linux versions < 6.12.17-1. Fixed in 6.12.17-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux package is a core component of the Debian operating system, providing essential functionalities for managing hardware and system resources. It includes the kernel, which is responsible for communication between software and hardware. The package supports various file systems, including Btrfs, which is designed for high-performance storage management. However, it is susceptible to vulnerabilities that can lead to system crashes and data corruption, particularly when certain configurations are used.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the Btrfs file system that involves a double accounting race condition when the function btrfs_run_delalloc_range() fails. This issue arises when Btrfs is run with a block size smaller than the page size, leading to a high probability of kernel crashes. The vulnerability can trigger critical errors, including kernel panics and NULL pointer dereferences, resulting in system instability and potential data loss.

How To Fix

Minimum fixed version

6.12.17-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

As a temporary workaround, users can avoid using Btrfs with a block size smaller than the page size. Adjusting the configuration to ensure that the block size is equal to or greater than the page size may help mitigate the risk of encountering this vulnerability.

Conclusion

The identified vulnerability in the Linux package poses significant risks to system stability and data integrity, particularly for users of the Btrfs file system. It is crucial to apply the recommended updates or implement workarounds to mitigate potential impacts. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to kernel crashes, system instability, and potential data loss, particularly in systems using Btrfs with incompatible block and page sizes.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If an immediate update is not possible, consider using the workaround of adjusting the block size to avoid triggering the vulnerability.

Yes, the vulnerability is particularly relevant for systems running on aarch64 architecture where the block size is smaller than the page size.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.17-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