AZL-117379: CVE-2026-99892 affecting package kernel 6.6.161.1-1
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ceph_crypt_get_context(), validate that the complete fscrypt auth blob fits in the inode-owned allocation before using the inner blob length.
Event History
Frequently Asked Questions
Who can trigger the out-of-bounds read?
A Ceph metadata server (MDS) can trigger it by returning a malformed fscrypt authentication blob with an inner length larger than the inode-owned allocation. The described test case obtained leaked SLUB redzone bytes as an ordinary UID, so exploitation does not necessarily require elevated local privileges once the malformed MDS reply is processed.
What operation reaches the vulnerable code path?
The out-of-bounds memcpy occurs when a caller requests the encryption nonce from a malformed fscrypt context. A complete, correctly sized context continues to work after the fix.
How can affected behavior be identified?
On the tested baseline, processing the malformed reply produced a KASAN slab-out-of-bounds read twice. In non-KASAN production-path testing, it disclosed sixteen wire-absent SLUB redzone bytes in two runs.
What does the fix change?
The fix requires the complete authentication blob, including the length specified inside it, to fit within the inode-owned allocation before that inner length is used. Malformed contexts that previously reached the read are rejected.