Critical Vulnerability in Linux Kernel: Btrfs Tree Mod Log Mishandling

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
No i
Unrated
Not published

CVE-2022-49898: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix tree mod log mishandling of reallocated nodes We have been seeing the following panic in production kernel BUG at fs/btrfs/tree-mod-log.c:677... 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. Btrfs (B-tree file system) is a modern file system for Linux that offers advanced features like snapshots, dynamic inode allocation, and integrated multi-device support. However, a vulnerability has been identified in the Btrfs implementation that can lead to system crashes and data integrity issues.

Vulnerability Detail

The vulnerability, identified as CVE-2022-49898, arises from improper handling of reallocated nodes in the Btrfs tree modification log. When operations are replayed in an incorrect order, it can lead to a kernel panic, causing the system to crash. This issue is triggered during the removal and replacement of child nodes in the Btrfs tree structure, where the system incorrectly assumes the presence of an old root, leading to a critical failure in the 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 →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch by updating the Linux kernel to the latest version.

Conclusion

The CVE-2022-49898 vulnerability in the Linux kernel's Btrfs file system poses a significant risk of system crashes and data integrity issues. Users are strongly advised to update their systems to the latest patched version to mitigate this risk. Regular monitoring for vulnerabilities using tools like Vulert can further enhance system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49898 is a vulnerability in the Linux kernel's Btrfs file system that can cause kernel panics due to improper handling of tree modification logs.

This vulnerability can lead to system crashes, data loss, and instability when using the Btrfs file system, particularly during node replacement operations.

If you are using a version of the Linux kernel prior to 6.0.8-1 on Debian systems, your system may be vulnerable. You can check your kernel version using the command 'uname -r'.

The best protection is to update your Linux kernel to the patched version (6.0.8-1 or later) as soon as possible.

Vulert is a tool that monitors and alerts for open-source vulnerabilities in software using a manifest file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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