CVE-2025-40105
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40105 is a vulnerability in the Linux kernel's Virtual File System (VFS) that was discovered and disclosed on October 30, 2025. The issue affects the handling of disconnected dentries during unmount operations, specifically when using the openbyhandle_at() system call (Red Hat CVE, Debian Tracker).

Technical details

The vulnerability occurs when openbyhandleat() is called on an uncached inode, creating a disconnected dentry. If this dentry is a directory, exportfsdecodefhraw() attempts to connect it to the dentry tree through reconnectpath(). Due to various conditions like corrupted filesystems or race conditions with rename operations, lookuponeunlocked() in reconnectone() may fail to find the target dentry and instead create a new one under the parent. This new dentry isn't properly marked as disconnected, leading to inconsistency in disconnected flags. The issue became more significant after commit f1ee616214cb which changed how disconnected dentries are handled (Red Hat CVE). The vulnerability has been assigned a CVSS v3.1 base score of 5.5, with attack vector being Local (AV:L), attack complexity Low (AC:L), and requiring low privileges (PR:L) (Red Hat CVE).

Impact

The primary impact of this vulnerability is resource exhaustion. When affected dentries aren't properly marked as disconnected, they aren't reclaimed as expected, leading to memory leaks. These leaked dentries persist in memory until either memory reclaim occurs or the system encounters the 'Busy inodes after unmount' error during unmount operations (Red Hat CVE).

Mitigation and workarounds

The fix involves ensuring that all dentries created under a disconnected parent are properly marked as disconnected. This has been implemented in Linux kernel version 6.17.6-1 for some distributions. For other versions, the fix is either deferred or pending. Red Hat Enterprise Linux 7 is not affected, while versions 8, 9, and 10 have deferred fixes (Red Hat CVE, Debian Tracker).

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-40105N/AN/A
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoNoOct 30, 2025
CVE-2025-40104N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace-kvm
NoNoOct 30, 2025
CVE-2025-40103N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug-kvm
NoNoOct 30, 2025
CVE-2025-40102N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoOct 30, 2025
CVE-2025-40100N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-kvm
NoNoOct 30, 2025

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