CVE-2025-40362
Last modified
CVE-2025-40362 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
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 usr@.fsname1=/ /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 admin@.fsname1=/ /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" ]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 07640d34a781bb2e39020a39137073c03c4aa932; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523; >= 596afb0b8933ba6ed7227adcc538db26feb25c74, < 22c73d52a6d05c5a2053385c0d6cd9984732799d |
| Linux | Linux | 6.10 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40362?
How severe is CVE-2025-40362?
How do I fix CVE-2025-40362?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40357In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40358In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-40359In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4036A vulnerability was found in 201206030 Novel 3.5.0 and class…9.8
- CVE-2025-40360In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40361Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2025-40363In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40364In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-4037A vulnerability was found in code-projects ATM Banking 1.0. …5.5
- CVE-2025-4038A vulnerability was found in code-projects Train Ticket Rese…5.5
- CVE-2025-4039A vulnerability was found in PHPGurukul Rail Pass Management…9.8
- CVE-2025-4040Authorization Bypass Through User-Controlled Key vulnerabili…7.1
Are you affected by CVE-2025-40362?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
