CVE-2025-40055
Linux Kernel vulnerability analysis and mitigation

Overview

A double free vulnerability (CVE-2025-40055) was discovered in the Linux kernel's OCFS2 filesystem component, specifically in the user_cluster_connect() function. The vulnerability was disclosed on October 28, 2025. The issue occurs when user_cluster_disconnect() frees 'conn->cc_private' (which is 'lc') and then the error handling code attempts to free 'lc' a second time (NVD).

Technical details

The vulnerability exists in the error handling path of the user_cluster_connect() function within the OCFS2 filesystem code. The issue stems from improper memory management where the same memory location ('lc') is freed twice - once through conn->cc_private and again directly. This type of vulnerability is known as a double free condition, which can potentially lead to memory corruption (Ubuntu).

Impact

A double free vulnerability can potentially lead to memory corruption and could be exploited to cause system crashes or potentially achieve arbitrary code execution. The vulnerability affects multiple Linux distributions including Ubuntu and Debian, with Ubuntu assigning it a Medium priority rating (Ubuntu, Debian).

Mitigation and workarounds

The vulnerability has been fixed by setting 'lc' to NULL after the first free operation to prevent the double free condition. Debian has released version 6.1.158-1 which includes the fix. Ubuntu has also released updates for affected kernel packages (Debian, Ubuntu).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management