Critical NULL Pointer Dereference in Linux Kernel - OCFS2 Package Vulnerability

linux Updated 02 Oct 2025

Summary

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

DEBIAN-CVE-2024-40952: In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix NULL pointer dereference in ocfs2_journal_dirty() bdev->bd_super has been removed and commit 8887b94d9322 change the usage from bdev->bd_supe... 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, including Debian. It manages system resources and hardware communication, providing essential services for software applications. The OCFS2 (Oracle Cluster File System 2) is a shared disk file system designed for use in clustered environments. This vulnerability affects the OCFS2 component of the Linux kernel, potentially leading to system crashes and data loss.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the OCFS2 file system that leads to a NULL pointer dereference in the function ocfs2_journal_dirty(). This issue arises from the removal of bdev->bd_super and the improper initialization of b_assoc_map, which can cause the system to crash when certain operations are performed. The vulnerability can be easily reproduced by running specific tests, leading to a kernel panic and potential data corruption.

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 avoid potential system crashes.

Conclusion

The identified vulnerability in the OCFS2 component of the Linux kernel poses significant risks, including system crashes and potential data loss. It is imperative to update to the patched version to ensure system stability and security. Regular monitoring and updates are essential for maintaining a secure environment.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability can lead to a NULL pointer dereference, causing the system to crash and potentially resulting in data loss.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The vulnerability affects the Linux packages in Debian 13 and 14 prior to version 6.9.7-1.

Yes, due to the nature of the vulnerability, there is a risk of data loss if the system crashes as a result of the NULL pointer dereference.

While there are no specific workarounds, 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