CVE-2025-40105
vfs: Don't leak disconnected dentries on umount
Description
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.
INFO
Published Date :
Oct. 30, 2025, 10:15 a.m.
Last Modified :
Nov. 10, 2026, 1:17 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Apply the Linux kernel patch for VFS dentry handling.
- Update the Linux kernel to the latest version.
- Reboot the system after applying the patch.
- Verify dentry integrity post-update.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-40105.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-40105 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-40105
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-40105 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-40105 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Nov. 10, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/40xxx/CVE-2025-40105.json">CVE-2025-40105</a> -
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: vfs: No fugar dentries desconectados al desmontar Cuando el usuario llama a open_by_handle_at() en algún inodo que no está en caché, crearemos un dentry desconectado para él. Si dicho dentry es un directorio, exportfs_decode_fh_raw() intentará entonces conectar este dentry al árbol de dentries a través de reconnect_path(). Puede ocurrir por varias razones (como un sistema de archivos corrupto o una condición de carrera con renombrar) que la llamada a lookup_one_unlocked() en reconnect_one() falle en encontrar el dentry que estamos intentando reconectar y en su lugar cree un nuevo dentry bajo el padre. Ahora este dentry no será marcado como desconectado aunque el padre aún podría estar desconectado (al menos en caso de que esta inconsistencia ocurriera porque el sistema de archivos está corrupto y .. no apunta al directorio padre real). Esto crea inconsistencia en las banderas de desconexión pero hasta donde puedo ver era mayormente inofensivo. Al menos hasta el commit f1ee616214cb ('VFS: no mantener dentries desconectados en d_anon') que eliminó la adición de la mayoría de los dentries desconectados a la lista sb->s_anon. Así, después de este commit, la limpieza de los dentries desconectados se basa implícitamente en el hecho de que dput() reclamará inmediatamente dichos dentries. Sin embargo, cuando algún dentry hoja no está marcado como desconectado, como en el escenario descrito anteriormente, la recuperación no ocurre y los dentries se 'fugan'. La recuperación de memoria puede eventualmente reclamarlos, pero de lo contrario permanecen en memoria y si el desmontaje ocurre primero, nos encontramos con el infame error 'Inodos ocupados después del desmontaje'. Asegúrese de que todos los dentries creados bajo un padre desconectado también estén marcados como desconectados. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 15, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-40105', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-15T21:56:57.898376Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/20863bb7fbb016379f8227122edfabc5c799bc79 Added Reference https://git.kernel.org/stable/c/56094ad3eaa21e6621396cc33811d8f72847a834 Added Reference https://git.kernel.org/stable/c/620f3b0ede9c5cb4976cd0457d0b04ad551e5d6b Added Reference https://git.kernel.org/stable/c/7e0c8aaf4e28918abded547a5147c7d52c4af7d2 Added Reference https://git.kernel.org/stable/c/8004d4b8cbf1bd68a23c160d57287e177c82cc69 Added Reference https://git.kernel.org/stable/c/b5abafd0aa8d7bcb935c8f91e4cfc2f2820759e4 Added Reference https://git.kernel.org/stable/c/cebfbf40056a4d858b2a3ca59a69936d599bd209 Added Reference https://git.kernel.org/stable/c/eadc49999fa994d6fbd70c332bd5d5051cc42261 Removed Reference https://git.kernel.org/stable/c/20863bb7fbb016379f8227122edfabc5c799bc79 Removed Reference https://git.kernel.org/stable/c/56094ad3eaa21e6621396cc33811d8f72847a834 Removed Reference https://git.kernel.org/stable/c/620f3b0ede9c5cb4976cd0457d0b04ad551e5d6b Removed Reference https://git.kernel.org/stable/c/7e0c8aaf4e28918abded547a5147c7d52c4af7d2 Removed Reference https://git.kernel.org/stable/c/8004d4b8cbf1bd68a23c160d57287e177c82cc69 Removed Reference https://git.kernel.org/stable/c/b5abafd0aa8d7bcb935c8f91e4cfc2f2820759e4 Removed Reference https://git.kernel.org/stable/c/cebfbf40056a4d858b2a3ca59a69936d599bd209 Removed Reference https://git.kernel.org/stable/c/eadc49999fa994d6fbd70c332bd5d5051cc42261 -
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Oct. 15, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/40xxx/CVE-2025-40105.json">CVE-2025-40105</a> Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html Added Reference https://cert-portal.siemens.com/productcert/html/ssa-457936.html Removed Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Jul. 14, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIPLUS S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}] Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': 'b5abafd0aa8d7bcb935c8f91e4cfc2f2820759e4', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': '20863bb7fbb016379f8227122edfabc5c799bc79', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': '8004d4b8cbf1bd68a23c160d57287e177c82cc69', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': '7e0c8aaf4e28918abded547a5147c7d52c4af7d2', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': 'cebfbf40056a4d858b2a3ca59a69936d599bd209', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': '620f3b0ede9c5cb4976cd0457d0b04ad551e5d6b', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': 'eadc49999fa994d6fbd70c332bd5d5051cc42261', 'versionType': 'git'}, {'status': 'affected', 'version': 'f1ee616214cb22410e939d963bbb2349c2570f02', 'lessThan': '56094ad3eaa21e6621396cc33811d8f72847a834', 'versionType': 'git'}], 'programFiles': ['fs/dcache.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.4.301', 'versionType': 'semver', 'lessThanOrEqual': '5.4.*'}, {'status': 'unaffected', 'version': '5.10.246', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.196', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.158', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.114', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.55', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.5', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/dcache.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 30, 2025
Action Type Old Value New Value Added Description 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. Added Reference https://git.kernel.org/stable/c/20863bb7fbb016379f8227122edfabc5c799bc79 Added Reference https://git.kernel.org/stable/c/56094ad3eaa21e6621396cc33811d8f72847a834 Added Reference https://git.kernel.org/stable/c/620f3b0ede9c5cb4976cd0457d0b04ad551e5d6b Added Reference https://git.kernel.org/stable/c/7e0c8aaf4e28918abded547a5147c7d52c4af7d2 Added Reference https://git.kernel.org/stable/c/8004d4b8cbf1bd68a23c160d57287e177c82cc69 Added Reference https://git.kernel.org/stable/c/b5abafd0aa8d7bcb935c8f91e4cfc2f2820759e4 Added Reference https://git.kernel.org/stable/c/cebfbf40056a4d858b2a3ca59a69936d599bd209 Added Reference https://git.kernel.org/stable/c/eadc49999fa994d6fbd70c332bd5d5051cc42261