Use-After-Free Vulnerability in Linux Kernel's Btrfs Module

linux Updated 02 Oct 2025

Summary

01/05/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-26944: In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix use-after-free in do_zone_finish() Shinichiro reported the following use-after-free triggered by the device replace operation in fstes... Affects linux versions < 6.8.9-1. Fixed in 6.8.9-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 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 Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. The Btrfs (B-tree file system) module is designed for high-performance storage management, offering features like snapshots, dynamic inode allocation, and integrated volume management. However, it is susceptible to vulnerabilities that can compromise system stability and security, such as the use-after-free issue identified in this report.

Vulnerability Detail

The vulnerability arises from a use-after-free condition in the Btrfs module, specifically in the do_zone_finish() function. This issue is triggered during the device replacement operation, leading to potential access to stale zone information of a freed btrfs_device. The ramifications include possible system crashes, data corruption, or unauthorized access to sensitive information, as the kernel may attempt to read from memory that has already been freed. The vulnerability was reported by Shinichiro and is documented under CVE-2024-26944.

How To Fix

Minimum fixed version

6.8.9-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 may consider disabling the Btrfs module if it is not critical for their operations. This can be done by running the following command: sudo modprobe -r btrfs. However, this may affect any applications relying on Btrfs functionality.

Conclusion

The use-after-free vulnerability in the Linux kernel's Btrfs module poses significant risks to system stability and security. Users are advised to update their kernel to the patched version 6.8.9-1 to mitigate these risks. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a pointer after the memory it points to has been freed, potentially leading to unpredictable behavior or security issues.

You can use Vulert, which monitors open-source vulnerabilities in your software. By simply uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

The impacts include system crashes, data corruption, and unauthorized access to sensitive information, which can compromise the integrity and security of the system.

Yes, the vulnerability affects versions prior to 6.8.9-1. Users should ensure they are running the patched version to mitigate the risk.

Yes, you can use the Vulert playground to check if your application is affected by this vulnerability without any signup required.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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