VDB

CVE-2025-40105

CVE-2025-40105 PUBLISHED CVSS 7.8 HIGH

vfs: Don't leak disconnected dentries on umount

Reported by linux · Published October 30, 2025

In the Linux kernel, the following vulnerability has been resolved: vfs: Don't leak disconnected dentries on umount When user calls open_by_handle_at() on some inode that is not cached, we will create disconnected dentry for it. If such dentry is a directory, exportfs_decode_fh_raw() will then try to connect this dentry to the dentry tree through reconnect_path(). It may happen for various reasons (such as corrupted fs or race with rename) that the call to lookup_one_unlocked() in reconnect_one() will fail to find the dentry we are trying to reconnect and instead create a new dentry under the parent. Now this dentry will not be marked as disconnected although the parent still may well be disconnected (at least in case this inconsistency happened because the fs is corrupted and .. doesn't point to the real parent directory). This creates inconsistency in disconnected flags but AFAICS it was mostly harmless. At least until commit f1ee616214cb ("VFS: don't keep disconnected dentries on d_anon") which removed adding of most disconnected dentries to sb->s_anon list. Thus after this commit cleanup of disconnected dentries implicitely relies on the fact that dput() will immediately reclaim such dentries. However when some leaf dentry isn't marked as disconnected, as in the scenario described above, the reclaim doesn't happen and the dentries are "leaked". Memory reclaim can eventually reclaim them but otherwise they stay in memory and if umount comes first, we hit infamous "Busy inodes after unmount" bug. Make sure all dentries created under a disconnected parent are marked as disconnected as well.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-develAmazon Linux1:6.1.158-178.288.amzn2023
bpftoolAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.55-74.119.amzn2023
python3-perfAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.55-74.119.amzn2023
kernel-toolsAmazon Linux1:6.1.158-178.288.amzn2023
kernel-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel-livepatch-6.12.55-74.119Amazon Linux1:1.0-0.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.55-74.119.amzn2023
python3-perf6.12Amazon Linux1:6.12.55-74.119.amzn2023
perf6.12Amazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-libbpf-staticAmazon Linux1:6.12.55-74.119.amzn2023

14 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxf1ee616214cb22410e939d963bbb2349c2570f02, f1ee616214cb22410e939d963bbb2349c2570f02, f1ee616214cb22410e939d963bbb2349c2570f02
LinuxLinux4.16, 0, 5.4.301
amazon:2023kernel-libbpf-devel0
amazon:2023bpftool0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023python3-perf0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.6, 3.1.7
amazon:2023kernel6.12-libbpf0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.6, 3.1.7
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.7, 3.1.6
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.12.55-74.1190
amazon:2023kernel6.12-modules-extra-common0
amazon:2023python3-perf6.120
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.7, 3.1.6
amazon:2023perf6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.120
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.6, 3.1.7

…and 20 more

Timeline

  • Oct 29, 2025 CVE Published
  • Oct 30, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 30, 2025 Coalition ESS Score (3 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (176 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (131 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40105
vulnetix vdb fixes CVE-2025-40105

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40105/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›