Critical Metadata Write Issue in Linux Kernel - CVE-2025-37931

linux Updated 02 Oct 2025

Summary

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

CVE-2025-37931: In the Linux kernel, the following vulnerability has been resolved: btrfs: adjust subpage bit start based on sectorsize When running machines with 64k page size and a 16k nodesize we started seeing tree log corruption in... Affects linux versions 6.1.106-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 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 kernel is the core component of many operating systems, responsible for managing hardware resources and providing essential services to software applications. It is widely used in various environments, from servers to embedded systems. The kernel's stability and security are paramount, as vulnerabilities can lead to system corruption and data loss. This specific vulnerability affects the Btrfs filesystem, which is known for its advanced features like snapshots and dynamic inode allocation. The issue arises when the kernel fails to correctly manage metadata writes under certain configurations, leading to potential data corruption.

Vulnerability Detail

CVE-2025-37931 is a vulnerability in the Linux kernel's Btrfs filesystem that can cause tree log corruption due to improper handling of dirty blocks during metadata writes. The issue occurs when the system operates with a 64k page size and a 16k nodesize, combined with a 4k sectorsize. The bitmap used to track dirty ranges does not align correctly with the radix tree entries, leading to skipped writes of dirty extent buffers. This can result in significant data integrity issues, as metadata may not be written correctly, potentially corrupting the filesystem.

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 configurations that involve a 64k page size with a 16k nodesize and a 4k sectorsize. This may involve changing filesystem settings or using a different filesystem that does not exhibit this issue until a proper patch is applied.

Conclusion

CVE-2025-37931 is a critical vulnerability in the Linux kernel that affects the Btrfs filesystem, leading to potential data corruption due to improper metadata handling. Users are strongly advised to update their systems to the patched version of the Linux kernel to ensure data integrity and system stability. Temporary workarounds are available, but the best course of action is to apply the fix as soon as possible.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-37931 is a vulnerability in the Linux kernel's Btrfs filesystem that can lead to data corruption due to improper handling of metadata writes.

If your system uses the affected configurations, it may experience filesystem corruption, leading to potential data loss or instability.

You should update your Linux kernel to the patched version as soon as possible to mitigate the risk of data corruption.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.

Failure to address this vulnerability can result in data corruption, loss of filesystem integrity, and potential downtime for your applications.

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