Kernel Panic Vulnerability in Linux Btrfs Package: CVE-2024-58089

linux Updated 02 Oct 2025

Summary

12/03/2025
N/A
No i
Medium
5.5

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 5.10.103-1 – 6.9.9-1. 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 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 kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to applications. Btrfs (B-tree file system) is a modern file system for Linux that offers advanced features such as snapshots, dynamic inode allocation, and integrated volume management. However, it has been identified that Btrfs can experience critical issues when the block size is smaller than the page size, leading to potential kernel crashes.

Vulnerability Detail

CVE-2024-58089 is a vulnerability in the Btrfs file system within the Linux kernel. It arises when Btrfs is run with a block size of 4K, which is smaller than the page size of 64K on aarch64 architecture. This mismatch can trigger a series of errors during the handling of dirty pages, leading to a kernel panic. The vulnerability is characterized by double accounting of ordered extents, which can result in a NULL pointer dereference and ultimately crash the kernel. The issue is exacerbated by the experimental nature of the configuration, making it critical for users to address it promptly.

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

As a temporary workaround, users can avoid running Btrfs with a block size smaller than the page size. This may involve reconfiguring the file system or using a different file system that does not exhibit this issue.

Conclusion

CVE-2024-58089 is a critical vulnerability in the Linux kernel's Btrfs file system that can lead to kernel panics under specific configurations. Users are urged to update their systems to the latest patched versions to ensure stability and security. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-58089 is a vulnerability in the Btrfs file system of the Linux kernel that can lead to kernel crashes when certain configurations are used.

If your system is running Btrfs with a block size smaller than the page size, it may experience kernel panics, leading to system instability and potential data loss.

You should update your Linux kernel to the latest patched version to mitigate the risk associated with this vulnerability.

Yes, you can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file. You can check your application at Vulert Scanner without needing to sign up.

If left unaddressed, this vulnerability can lead to frequent system crashes, data corruption, and a significant risk to system reliability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

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