Critical NULL Pointer Dereference Vulnerability in Linux Kernel Package

linux Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2025-38059: In the Linux kernel, the following vulnerability has been resolved: btrfs: avoid NULL pointer dereference if no valid csum tree [BUG] When trying read-only scrub on a btrfs with rescue=idatacsums mount option, it will cr... Affects linux versions < 6.12.32-1. Fixed in 6.12.32-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 Your last release was probably never penetration tested 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 the Linux operating system, responsible for managing hardware resources and providing essential services to applications. It is widely used across various platforms, including servers, desktops, and embedded systems. This vulnerability specifically affects the btrfs filesystem, which is designed for high-performance and flexible storage management. The issue arises when using the 'rescue=idatacsums' mount option, leading to potential system crashes during read-only scrub operations.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the btrfs filesystem that can lead to a NULL pointer dereference. This occurs when a read-only scrub operation is performed on a btrfs filesystem mounted with the 'rescue=idatacsums' option. The scrub process attempts to access a checksum tree that has not been loaded, resulting in a crash with a kernel NULL pointer dereference. The bug can cause system instability and data integrity issues, as it bypasses checksum verification, potentially leading to undetected data corruption.

How To Fix

Minimum fixed version

6.12.32-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, avoid using the 'rescue=idatacsums' mount option when working with btrfs filesystems. This will prevent the NULL pointer dereference issue from occurring during scrub operations.

Conclusion

The identified NULL pointer dereference vulnerability in the Linux kernel's btrfs filesystem poses significant risks to system stability and data integrity. Users are strongly advised to update to the patched version of the kernel to mitigate these risks. Meanwhile, avoiding the problematic mount option can serve as a temporary workaround.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to system crashes and data integrity issues due to unchecked checksum verification.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If an immediate update is not possible, consider avoiding the use of the 'rescue=idatacsums' mount option as a temporary measure.

Yes, this vulnerability affects specific versions of the Linux kernel prior to the patch version 6.12.32-1.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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