Double Free Vulnerability in Linux Kernel - OCFS2 Package

linux Updated 04 Nov 2025

Summary

28/10/2025
N/A
No i
Unrated
Not published

DEBIAN-CVE-2025-40055: In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix double free in user_cluster_connect() user_cluster_disconnect() frees "conn->cc_private" which is "lc" but then the error handling frees "lc"... Affects linux versions 5.10.103-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 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 the Linux operating system, responsible for managing hardware and system resources. It provides essential services for all other parts of the operating system and is known for its stability and performance. The OCFS2 (Oracle Cluster File System 2) is a shared disk file system that allows multiple servers to access the same storage concurrently. This vulnerability affects the OCFS2 component of the Linux kernel, which is critical for systems relying on clustered environments.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the OCFS2 subsystem where a double free condition occurs in the user_cluster_connect() function. Specifically, the user_cluster_disconnect() function frees the 'conn->cc_private' pointer, which is assigned to 'lc'. However, during error handling, 'lc' is freed again, leading to a double free scenario. This vulnerability can potentially lead to memory corruption, crashes, or even arbitrary code execution, posing a significant risk to system stability and security.

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 using the OCFS2 functionality until the patch is applied. This may involve disabling clustered file system features or switching to alternative file systems that do not exhibit this vulnerability.

Conclusion

The CVE-2025-40055 vulnerability in the Linux kernel's OCFS2 subsystem presents a serious risk due to a double free condition that can lead to memory corruption and system instability. It is crucial for users to update their systems to the patched version to ensure security and stability. Temporary workarounds can be employed until the update is feasible.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-40055 is a vulnerability in the Linux kernel's OCFS2 subsystem that allows for a double free condition, potentially leading to memory corruption and security risks.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

The risks include system crashes, memory corruption, and potential arbitrary code execution, which can compromise system integrity and security.

Yes, a patch is available. Users should update their Linux package to the latest version that includes the fix for CVE-2025-40055.

If an immediate update is not possible, consider disabling OCFS2 functionality as a temporary workaround to mitigate risks until the patch can be applied.

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