Skip to main content

Linux Kernel CVE-2025-40362

HIGH
2025-12-16 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
8.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI
8.8 HIGH

Requires valid low-privilege Ceph credentials and local mount access (PR:L, AV:L); the client bypasses the separate MDS authority (S:C) enabling unauthorized read, write, and delete (C/I/A:H).

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE
7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat
5.5 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 07:32 vuln.today
CVE Published
Dec 16, 2025 - 14:15 cve.org
HIGH 8.8

DescriptionCVE.org

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

  1. Authorize read and write permission to the same user 'client.usr' on fs 'fsname2'

$ceph fs authorize fsname2 client.usr / rw

  1. 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.

  1. Mount the file system 'fsname1' with the user 'client.usr'

$sudo bin/mount.ceph usr@.fsname1=/ /kmnt_fsname1_usr/

  1. 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

  1. 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

  1. 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" ]

AnalysisAI

Authorization bypass in the Linux kernel CephFS client (ceph module) lets an authenticated Ceph user exercise MDS auth capabilities granted for one filesystem against a different filesystem in a multi-filesystem (multifs) Ceph cluster. Because the kernel client failed to validate the fsname alongside the associated caps, a user holding read-only rights on 'fsname1' but read-write rights on 'fsname2' would incorrectly gain read-write on 'fsname1', enabling file creation and deletion they should not be permitted. No public exploit identified at time of analysis, and the EPSS score is low (0.25%, 16th percentile), consistent with a specialized storage-cluster condition rather than mass exploitation.

Technical ContextAI

The affected component is the in-kernel CephFS client (fs/ceph), which mounts CephFS volumes and enforces MDS (Metadata Server) authorization capabilities delivered as part of a client's Ceph auth key. In a multifs cluster, a single 'client.X' identity can hold different caps per filesystem (e.g., 'allow r' on fsname1 and 'allow rw' on fsname2). The client-side caps evaluation matched only the capability grant string without binding it to the specific filesystem name, so caps intended for one fs were applied to another. The corrected logic validates the fsname - reconciled against the ceph_mount_options fsname rather than trusting the mdsmap - before applying caps. Although NVD lists CWE as N/A, the root cause is an incorrect/authorization-context-confusion class (analogous to CWE-863 Incorrect Authorization / CWE-285 Improper Authorization): the right permission set is evaluated against the wrong resource scope.

Affected ProductsAI

The vulnerability is in the Linux kernel's CephFS client (ceph module). NVD does not publish CPE ranges in the provided data, so exact vulnerable kernel version boundaries are not enumerated here; the fix landed as upstream stable commits (git.kernel.org/stable/c/07640d34a781bb2e39020a39137073c03c4aa932, .../22c73d52a6d05c5a2053385c0d6cd9984732799d, and .../ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523), indicating multiple stable branches were patched. Only deployments using the in-kernel CephFS client to mount volumes from a Ceph cluster that hosts more than one filesystem are affected; single-filesystem clusters are not impacted by this specific caps cross-application.

RemediationAI

Upstream fix available (stable commits 07640d34, 22c73d52, ca3da8b2); released patched version not independently confirmed from the provided data - update to the fixed kernel build for your distribution/stable branch that incorporates these commits (verify via your vendor's changelog). As a compensating control until patched, avoid the exact trigger condition: do not rely on the in-kernel CephFS client to enforce differing per-filesystem caps for the same client identity in a multifs cluster - instead provision distinct Ceph auth identities per filesystem so that no single keyring carries divergent caps across filesystems (trade-off: more keys to manage and rotate). Alternatively, restrict which hosts hold CephFS keyrings and mount privileges, and where feasible use the userspace ceph-fuse client whose corresponding fix/tests are referenced by the tracker (trade-off: fuse has lower performance than the kernel client). Consolidating to a single filesystem per cluster, where operationally acceptable, also eliminates the condition. Consult the kernel.org stable commit references above for the authoritative patch content.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/base-os-container:latest Container suse/sl-micro/6.0/kvm-os-container:latest Container suse/sl-micro/6.0/rt-os-container:latest Image SL-Micro Affected
Container suse/sl-micro/6.0/toolbox:latest Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
SUSE Linux Enterprise High Availability Extension 16.0 Fixed

Share

CVE-2025-40362 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy