KernelScan.io

CRITICAL Introduced in 3.15

ceph ExportName OOB

CVE-2026-89652

CVSS 9.8 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI9.8CRITICAL

01

In the Linux kernel, the following vulnerability has been resolved: ceph: bound copied dentry name length in NFS export get_name ceph_get_name() copies the MDS-supplied name into the caller's NAME_MAX-sized buffer with memcpy(name, rinfo->dname, rinfo->dname_len) and then writes name[rinfo->dname_len] = 0, without checking dname_len against NAME_MAX. A malicious or buggy MDS that returns a LOOKUPNAME reply with dname_len > NAME_MAX overflows the buffer. __get_snap_name() copies rde->name / rde->name_len the same unchecked way. Impact: a malicious or compromised Ceph MDS overflows the NAME_MAX name buffer in a client's NFS-export get_name path, a slab out-of-bounds write reported by KASAN. Reachable when a CephFS mount is re-exported over NFS. Add ceph_export_copy_name(), which rejects lengths above NAME_MAX with -ENAMETOOLONG before the copy, and use it in both ceph_get_name() and __get_snap_name().

02

Engine v0.6.0

Risk summary

A malicious or compromised Ceph MDS can overflow a NAME_MAX-sized name buffer in the client kernel when a CephFS mount is re-exported over NFS, causing a slab out-of-bounds write. The bug is reachable from the network path between the Ceph client and MDS and requires no privileges on the client beyond having the CephFS mount exported over NFS.

Affectedfs/ceph/export.c (ceph)

Vulnerability analysis

When a CephFS filesystem is re-exported over NFS, the kernel client asks the MDS for the name of a child inode and copies the reply into a fixed NAME_MAX-sized buffer without first checking the length the MDS supplied. A malicious or compromised MDS can return a name longer than NAME_MAX, causing the copy to write past the end of the buffer. The fix adds a helper that rejects any length above NAME_MAX before copying, returning an error instead of overflowing. The vulnerable path is only reachable when a CephFS mount is re-exported over NFS, and the attacker is the MDS (or a party able to impersonate or compromise it) on the Ceph cluster network.

03

BranchIntroducedFixed inPatch commit
5.103.155.10.273aadfe588ad80
5.153.155.15.2243cb09301c309
6.13.156.1.191dff3d84d1414
6.123.156.12.10961d9f27b191b
6.183.156.18.5006fb5e623cdc
6.63.156.6.157a294064e0e0f
7.23.157.2.4e7c2fd3893a7
mainline3.157.3eff8013c5a89
cip/6.123.156.12.111-cip3261d9f27b191b

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)