Cloudanix VulnDB

CVE-2025-40362

None

CVSS

—

EPSS

0.2%

Published

Dec 16, 2025

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in Linux storage software can let users change files on a shared system even when they were only supposed to be allowed to read them.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Privilege Gain
Component
OS kernel
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The MDS auth caps check omits fsname validation, causing capabilities granted for one Ceph filesystem to be incorrectly applied to a different filesystem in a multi-FS cluster.

Why it matters to the business

Users authorized for read-only access on one filesystem can perform unauthorized read/write operations on another, risking data integrity and confidentiality in multi-tenant Ceph deployments; affected OpenShift nodes require urgent updates given the published remediation deadline.

How an attack unfolds

An attacker creates multiple Ceph filesystems, grants a single client differing permissions per filesystem via ceph fs authorize, updates the keyring, mounts the restricted filesystem, and performs write operations that succeed because the caps from the other filesystem are incorrectly reused.

How to fix it

Upgrade containernetworking-plugins and related debug packages on Red Hat OpenShift 4.3 (el7/el8) to 0:0.8.6-1.rhaos4.3.el7 or 0:0.8.6-1.rhaos4.3.el8; apply Linux kernel commit 07640d34a781bb2e39020a39137073c03c4aa932 or later stable releases that enforce fsname validation in ceph_mount_options.

How to confirm the fix worked

Confirm package versions match the listed fixed releases, review Ceph MDS and client logs for absence of "fsname mismatch" warnings, and test that a client authorized only for read access on one filesystem can no longer write to another.

Typical attack path

  1. Create two or more Ceph filesystems in the same cluster
  2. Authorize the same client with different MDS caps on each filesystem
  3. Update and distribute the client's keyring
  4. Mount a filesystem where the client should have only read access
  5. Execute write or delete operations that incorrectly succeed due to cross-filesystem cap leakage

How to detect it

Search Ceph client and MDS logs for "fsname mismatch" messages, unexpected successful touch/rm operations on read-only mounts, and keyring updates followed by cross-filesystem permission bypass indicators.

  • fsname mismatch
  • fsname check failed
  • client.usr mount with differing caps across filesystems
  • touch succeeding on read-only Ceph mount

What your security team should do

  • Apply the fixed package versions immediately on all affected OpenShift nodes using multi-FS Ceph
  • Audit Ceph authorization configurations to ensure fsname-specific caps are correctly scoped
  • Monitor for unexpected write activity from clients with read-only grants until patches are deployed

The record

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

Affected packages

Ecosystem Package Introduced Fixed
Linux Kernel 0 6.12.58
Linux Kernel 6.10.0 6.12.58
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-azure 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.9.1.160000.2.6
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.9.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.9.1

Related vulnerabilities