Vulnerability record
ceph: validate fscrypt auth blob length
In the Linux kernel, the following vulnerability has been resolved:
ceph: validate fscrypt auth blob length
ceph_crypt_get_context() trusts cfa_blob_len after checking only that the inode-owned fscrypt_auth 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…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources