Btrfs Space Cache Corruption Vulnerability in Linux Kernel - CVE-2022-49999

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49999: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix space cache corruption and potential double allocations When testing space_cache v2 on a large set of machines, we encountered a few symptoms... Affects linux versions < 6.0.2-1. Fixed in 6.0.2-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. It supports various file systems, including Btrfs, which is known for its advanced features like snapshots, dynamic inode allocation, and integrated volume management. However, the Btrfs file system has been found to have a vulnerability related to space cache management, which can lead to corruption and data integrity issues.

Vulnerability Detail

CVE-2022-49999 is a vulnerability in the Btrfs file system within the Linux kernel that arises from a race condition during the caching of free space. This race can lead to multiple instances of the same free space being added to the cache, causing errors such as 'unable to add free space' and potential double allocations. The underlying issue stems from improper synchronization between transactions that manage the allocation and deallocation of space, which can result in corrupted free space trees and data integrity problems.

How To Fix

Minimum fixed version

6.0.2-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. It is recommended to apply the patch as soon as it is available to mitigate the risks associated with this issue.

Conclusion

CVE-2022-49999 is a significant vulnerability in the Btrfs file system of the Linux kernel that can lead to serious data integrity issues. It is essential for users to update their systems to the patched version to mitigate the risks associated with this vulnerability. Regular monitoring and timely updates are critical for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49999 is a vulnerability in the Btrfs file system of the Linux kernel that can lead to space cache corruption and double allocations.

This vulnerability can cause data integrity issues, leading to errors in managing free space and potential data loss.

If you are using a version of Linux with Btrfs and have not updated to the patched version (6.0.2-1 or later), your system may be vulnerable.

While there are no specific workarounds, it is crucial to monitor your system for any unusual behavior and plan to apply the update as soon as possible.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can check your application at the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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