CVE-2025-40362
ceph: fix multifs mds auth caps issue
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix multifs mds auth caps issue The mds auth caps check should also validate the fsname along with the associated caps. Not doing so would result in applying the mds auth caps of one fs on to the other fs in a multifs ceph cluster. The bug causes multiple issues w.r.t user authentication, following is one such example. Steps to Reproduce (on vstart cluster): 1. Create two file systems in a cluster, say 'fsname1' and 'fsname2' 2. Authorize read only permission to the user 'client.usr' on fs 'fsname1' $ceph fs authorize fsname1 client.usr / r 3. Authorize read and write permission to the same user 'client.usr' on fs 'fsname2' $ceph fs authorize fsname2 client.usr / rw 4. Update the keyring $ceph auth get client.usr >> ./keyring With above permssions for the user 'client.usr', following is the expectation. a. The 'client.usr' should be able to only read the contents and not allowed to create or delete files on file system 'fsname1'. b. The 'client.usr' should be able to read/write on file system 'fsname2'. But, with this bug, the 'client.usr' is allowed to read/write on file system 'fsname1'. See below. 5. Mount the file system 'fsname1' with the user 'client.usr' $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_usr/ 6. Try creating a file on file system 'fsname1' with user 'client.usr'. This should fail but passes with this bug. $touch /kmnt_fsname1_usr/file1 7. Mount the file system 'fsname1' with the user 'client.admin' and create a file. $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_admin $echo "data" > /kmnt_fsname1_admin/admin_file1 8. Try removing an existing file on file system 'fsname1' with the user 'client.usr'. This shoudn't succeed but succeeds with the bug. $rm -f /kmnt_fsname1_usr/admin_file1 For more information, please take a look at the corresponding mds/fuse patch and tests added by looking into the tracker mentioned below. v2: Fix a possible null dereference in doutc v3: Don't store fsname from mdsmap, validate against ceph_mount_options's fsname and use it v4: Code refactor, better warning message and fix possible compiler warning [ Slava.Dubeyko: "fsname check failed" -> "fsname mismatch" ]
INFO
Published Date :
Dec. 16, 2025, 2:15 p.m.
Last Modified :
Oct. 15, 2026, 10:19 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
- Update the Linux kernel to the latest version.
- Apply the specific patch for the multifs mds auth caps issue.
- Verify the integrity of fsname and associated caps.
- Test authentication across multiple file systems.
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-40362.
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-40362 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-40362
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-40362 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-40362 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 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/07640d34a781bb2e39020a39137073c03c4aa932 Added Reference https://git.kernel.org/stable/c/22c73d52a6d05c5a2053385c0d6cd9984732799d Added Reference https://git.kernel.org/stable/c/ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523 Removed Reference https://git.kernel.org/stable/c/07640d34a781bb2e39020a39137073c03c4aa932 Removed Reference https://git.kernel.org/stable/c/22c73d52a6d05c5a2053385c0d6cd9984732799d Removed Reference https://git.kernel.org/stable/c/ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 15, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-40362', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-15T21:59:40.317622Z'} -
CVE Translated by [email protected]
Oct. 14, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ceph: corrige problema de capacidades de autenticación mds multifs La verificación de capacidades de autenticación mds también debería validar el fsname junto con las capacidades asociadas. No hacerlo resultaría en la aplicación de las capacidades de autenticación mds de un fs en el otro fs en un clúster ceph multifs. El error causa múltiples problemas con respecto a la autenticación de usuario, el siguiente es un ejemplo. Pasos para Reproducir (en clúster vstart): 1. Cree dos sistemas de archivos en un clúster, por ejemplo 'fsname1' y 'fsname2' 2. Autorice permiso de solo lectura al usuario 'client.usr' en el fs 'fsname1' $ceph fs authorize fsname1 client.usr / r 3. Autorice permiso de lectura y escritura al mismo usuario 'client.usr' en el fs 'fsname2' $ceph fs authorize fsname2 client.usr / rw 4. Actualice el keyring $ceph auth get client.usr >> ./keyring Con los permisos anteriores para el usuario 'client.usr', la siguiente es la expectativa. a. El 'client.usr' debería poder solo leer los contenidos y no tener permitido crear o eliminar archivos en el sistema de archivos 'fsname1'. b. El 'client.usr' debería poder leer/escribir en el sistema de archivos 'fsname2'. Pero, con este error, al 'client.usr' se le permite leer/escribir en el sistema de archivos 'fsname1'. Vea a continuación. 5. Monte el sistema de archivos 'fsname1' con el usuario 'client.usr' $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_usr/ 6. Intente crear un archivo en el sistema de archivos 'fsname1' con el usuario 'client.usr'. Esto debería fallar pero pasa con este error. $touch /kmnt_fsname1_usr/file1 7. Monte el sistema de archivos 'fsname1' con el usuario 'client.admin' y cree un archivo. $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_admin $echo “data” > /kmnt_fsname1_admin/admin_file1 8. Intente eliminar un archivo existente en el sistema de archivos 'fsname1' con el usuario 'client.usr'. Esto no debería tener éxito pero tiene éxito con el error. $rm -f /kmnt_fsname1_usr/admin_file1 Para más información, por favor, eche un vistazo al parche mds/fuse correspondiente y las pruebas añadidas consultando el rastreador mencionado a continuación. v2: Corrige una posible desreferencia nula en doutc v3: No almacene fsname de mdsmap, valide contra el fsname de ceph_mount_options y úselo v4: Refactorización de código, mejor mensaje de advertencia y corrige posible advertencia del compilador [ Slava.Dubeyko: 'fsname check failed' -> 'fsname mismatch' ] -
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:C/C:H/I:H/A:H -
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': '596afb0b8933ba6ed7227adcc538db26feb25c74', 'lessThan': '07640d34a781bb2e39020a39137073c03c4aa932', 'versionType': 'git'}, {'status': 'affected', 'version': '596afb0b8933ba6ed7227adcc538db26feb25c74', 'lessThan': 'ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523', 'versionType': 'git'}, {'status': 'affected', 'version': '596afb0b8933ba6ed7227adcc538db26feb25c74', 'lessThan': '22c73d52a6d05c5a2053385c0d6cd9984732799d', 'versionType': 'git'}], 'programFiles': ['fs/ceph/mds_client.c', 'fs/ceph/mdsmap.c', 'fs/ceph/super.c', 'fs/ceph/super.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.10'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.10', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.58', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.8', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/ceph/mds_client.c', 'fs/ceph/mdsmap.c', 'fs/ceph/super.c', 'fs/ceph/super.h'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 16, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ceph: fix multifs mds auth caps issue The mds auth caps check should also validate the fsname along with the associated caps. Not doing so would result in applying the mds auth caps of one fs on to the other fs in a multifs ceph cluster. The bug causes multiple issues w.r.t user authentication, following is one such example. Steps to Reproduce (on vstart cluster): 1. Create two file systems in a cluster, say 'fsname1' and 'fsname2' 2. Authorize read only permission to the user 'client.usr' on fs 'fsname1' $ceph fs authorize fsname1 client.usr / r 3. Authorize read and write permission to the same user 'client.usr' on fs 'fsname2' $ceph fs authorize fsname2 client.usr / rw 4. Update the keyring $ceph auth get client.usr >> ./keyring With above permssions for the user 'client.usr', following is the expectation. a. The 'client.usr' should be able to only read the contents and not allowed to create or delete files on file system 'fsname1'. b. The 'client.usr' should be able to read/write on file system 'fsname2'. But, with this bug, the 'client.usr' is allowed to read/write on file system 'fsname1'. See below. 5. Mount the file system 'fsname1' with the user 'client.usr' $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_usr/ 6. Try creating a file on file system 'fsname1' with user 'client.usr'. This should fail but passes with this bug. $touch /kmnt_fsname1_usr/file1 7. Mount the file system 'fsname1' with the user 'client.admin' and create a file. $sudo bin/mount.ceph [email protected]=/ /kmnt_fsname1_admin $echo "data" > /kmnt_fsname1_admin/admin_file1 8. Try removing an existing file on file system 'fsname1' with the user 'client.usr'. This shoudn't succeed but succeeds with the bug. $rm -f /kmnt_fsname1_usr/admin_file1 For more information, please take a look at the corresponding mds/fuse patch and tests added by looking into the tracker mentioned below. v2: Fix a possible null dereference in doutc v3: Don't store fsname from mdsmap, validate against ceph_mount_options's fsname and use it v4: Code refactor, better warning message and fix possible compiler warning [ Slava.Dubeyko: "fsname check failed" -> "fsname mismatch" ] Added Reference https://git.kernel.org/stable/c/07640d34a781bb2e39020a39137073c03c4aa932 Added Reference https://git.kernel.org/stable/c/22c73d52a6d05c5a2053385c0d6cd9984732799d Added Reference https://git.kernel.org/stable/c/ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523