Junglewise Threat Intelligence

CVE-2025-40105: Linux Kernel memory leak in VFS disconnected dentries

CVE-2025-40105 · Severity: info · CVSS 4.4 · Published 2025-10-30

Technologies: Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability in the Linux kernel's virtual file system (VFS) can cause system memory to be 'leaked' or incorrectly held when certain file operations occur on corrupted or busy file systems. This can lead to a 'Busy inodes after unmount' error, potentially preventing clean system shutdowns or causing resource exhaustion over time. The issue primarily affects systems using specific file handle operations, such as those found in network file sharing or specialized industrial controllers.

Technical details

A logic error in the Linux kernel VFS dcache component occurs when `open_by_handle_at()` is called on an uncached inode. If `reconnect_path()` fails to find a dentry during reconnection (due to filesystem corruption or rename races), it creates a new dentry that lacks the `DCACHE_DISCONNECTED` flag even if its parent is disconnected. Following commit f1ee616214cb, which changed how disconnected dentries are reclaimed, these unmarked dentries are not immediately reclaimed by `dput()`, leading to memory leaks and 'Busy inodes after unmount' errors. The fix ensures that the `DCACHE_DISCONNECTED` flag is propagated from parent to child dentries during allocation.

Affected products

  • Linux Linux Kernel f1ee616214cb to 56094ad3eaa2
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6

Timeline

  • 2025-10-02: patched: Initial fix authored by Jan Kara
  • 2025-10-30: advisory: CVE-2025-40105 published

References

Related threats