CVE-2026-99889: ceph: validate encoded xattr name lengths
In the Linux kernel, the following vulnerability has been resolved:
ceph: validate encoded xattr name lengths
buildxattrs() advances over an MDS-provided name length before checking that the name remains in the encoded xattr blob. On 32-bit clients, UINTMAX wraps the cursor and is stored as a negative internal name length. A later ordinary listxattr() converts it back to a UINTMAX memcpy size and corrupts kernel memory.
Check the name range before advancing and reject name, value, or aggregate sizes that overflow the signed internal accounting.
The malformed blob corrupted kernel state in two baseline boots. It was rejected cleanly twice with this change, while normal and length-only controls remained safe.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In __build_xattrs(), verify the encoded xattr name remains within the blob before advancing the cursor, and reject name, value, or aggregate sizes that overflow signed internal accounting.