CVE-2026-99892: ceph: validate fscrypt auth blob length
In the Linux kernel, the following vulnerability has been resolved:
ceph: validate fscrypt auth blob length
cephcryptgetcontext() trusts cfabloblen after checking only that the inode-owned fscryptauth allocation contains the fixed header and one byte. An MDS can therefore place a larger inner length in a shorter outer object, causing memcpy() to read beyond the allocation when a caller requests the encryption nonce.
Require the complete blob to fit in the inode-owned allocation before using the inner length.
On the tested baseline, the malformed reply produced the same KASAN slab-out-of-bounds read twice. An ordinary UID obtained sixteen wire-absent SLUB redzone bytes in two non-KASAN production-path runs. The input was rejected twice after this change, while a complete context still worked.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Ceph's ceph_crypt_get_context(), validate that the complete fscrypt auth blob fits within the inode-owned allocation before using cfa_blob_len.