Critical NULL Pointer Dereference in Linux Kernel's Btrfs - CVE-2024-40962

linux Updated 02 Oct 2025

Summary

12/07/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-40962: In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: allocate dummy checksums for zoned NODATASUM writes Shin'ichiro reported that when he's running fstests' test-case btrfs/167 on emulated z... Affects linux versions < 6.9.7-1. Fixed in 6.9.7-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 the core component of many operating systems, managing hardware and system resources. It supports various filesystems, including Btrfs, which is designed for high performance and advanced features like snapshots and dynamic volume management. However, a recent vulnerability has been identified in the Btrfs subsystem, specifically affecting zoned devices during NODATASUM writes, leading to potential system crashes.

Vulnerability Detail

In the Linux kernel, a vulnerability has been discovered in the Btrfs filesystem that can lead to a NULL pointer dereference. This issue arises when running specific test cases on emulated zoned devices, causing a general protection fault. The vulnerability is triggered when the system attempts to allocate dummy checksums for zoned NODATASUM writes, which can result in a crash and potential data loss. The root cause is a missing checksums list on the ordered_extent during NOCOW writes, which is expected behavior in zoned emulation mode.

How To Fix

Minimum fixed version

6.9.7-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 risks.

Conclusion

The CVE-2024-40962 vulnerability in the Linux kernel's Btrfs filesystem poses a significant risk to systems using affected versions. It is essential to apply the patch promptly to prevent potential crashes and data loss. Regular monitoring with tools like Vulert can help maintain awareness of vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-40962 is a vulnerability in the Linux kernel's Btrfs filesystem that can lead to a NULL pointer dereference, potentially causing system crashes.

If your system uses the affected version of the Linux kernel with Btrfs, it may experience crashes or data loss when performing specific write operations on zoned devices.

The vulnerability affects Linux kernel versions prior to 6.9.7-1 on Debian 13 and 14.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

While there are no specific workarounds available, it is crucial to plan for an update as soon as possible to mitigate the risks associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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