CVE-2026-89651: ceph: bound MDSCapAuth path and fs_name decode in handle_session()

Published Sep 11, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ceph: bound MDSCapAuth path and fsname decode in handlesession()

handlesession() decodes the MDSCapAuth records carried by a CEPHSESSIONOPEN message (msgversion >= 6). For each record the match.path and match.fsname byte strings are read by first decoding a 32-bit length and then copying that many bytes with the bare cephdecodecopy(). Unlike the surrounding fields, which all use the safe decode variants, these two copies are not preceded by a cephdecodeneed() bounds check, and the enclosing MDSCapAuth and MDSCapMatch structlen fields are skipped rather than enforced as an upper bound. A length larger than the bytes remaining in the message front makes cephdecodecopy() read past the end of the front buffer.

The message front is a dedicated allocation (cephmsgnew2() -> kvmalloc), so the over-read runs off that object. A malicious or compromised MDS can trigger this with the first post-connect message on mount, with no client-side user interaction; under KASAN it is reported as a slab-out-of-bounds read in handlesession().

Impact: a malicious MDS can force the kernel client to read up to 4 GiB past the message front allocation during session setup, crashing the client (out-of-bounds read).

Switch both copies to cephdecodecopysafe(), which performs the cephdecodeneed() bounds check before the copy and branches to the existing bad label, matching the rest of the decoder and the error path that frees the partially decoded capauths array.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ceph (Linux kernel) to a version that resolves this vulnerability.

    Patch ceph: bound MDSCapAuth path and fs_name decode in handle_session()
  2. Compensating control

    Mitigate the risk from a malicious/compromised MDS by restricting which MDS instances are allowed to communicate with the affected kernel client (e.g., enforce trusted cluster network connectivity and access control for post-connect MDS session establishment).

  3. Operational

    After upgrading the kernel fix, validate that session setup with MDSCapAuth records succeeds without slab/bounds issues (e.g., re-run KASAN/boot-time validation if used previously, and confirm handle_session() no longer triggers out-of-bounds read reports).

Event History

Sep 11, 2026
CVE Published
via MITRE·07:45 PM
Data Sourced
via MITRE·07:45 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux systems using the kernel Ceph client and connecting to an MDS that sends a CEPH_SESSION_OPEN message with message version 6 or later are exposed. The triggering message can be the first post-connect message during mount.

2

What access does an attacker need to trigger it?

An attacker needs control of, or the ability to compromise, a Ceph Metadata Server (MDS) that the kernel client connects to. No client-side user interaction is required.

3

How can administrators identify a possible trigger?

With KASAN enabled, the issue is reported as a slab-out-of-bounds read in handle_session(). The malformed MDS capability record contains path or fs_name lengths larger than the remaining bytes in the message front buffer.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203