CVE-2025-40105
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-livepatch-6.12.55-74.119 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f1ee616214cb22410e939d963bbb2349c2570f02, f1ee616214cb22410e939d963bbb2349c2570f02, f1ee616214cb22410e939d963bbb2349c2570f02 |
| Linux | Linux | 4.16, 0, 5.4.301 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | 3.1.6, 3.1.7 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | 3.1.6, 3.1.7 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.7, 3.1.6 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.55-74.119 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | 3.1.7, 3.1.6 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.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