{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99889","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.442Z","datePublished":"2026-11-30T13:18:00.257Z","dateUpdated":"2026-12-01T05:44:03.156Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:44:03.156Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: validate encoded xattr name lengths\n\n__build_xattrs() advances over an MDS-provided name length before checking\nthat the name remains in the encoded xattr blob.  On 32-bit clients,\nUINT_MAX wraps the cursor and is stored as a negative internal name\nlength.  A later ordinary listxattr() converts it back to a UINT_MAX memcpy\nsize and corrupts kernel memory.\n\nCheck the name range before advancing and reject name, value, or aggregate\nsizes that overflow the signed internal accounting.\n\nThe malformed blob corrupted kernel state in two baseline boots.  It was\nrejected cleanly twice with this change, while normal and length-only\ncontrols remained safe."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The malformed name length comes from the MDS over the Ceph TCP messenger, inside the InodeStat xattr blob of a CEPH_MSG_CLIENT_REPLY (parse_reply_info_in -> ceph_fill_inode stores it in i_xattrs.blob) or the middle section of a CEPH_MSG_CLIENT_CAPS grant (handle_cap_grant). __build_xattrs() then does p += namelen on that wire value without ceph_decode_need().\nAC:L - On a 32-bit client, namelen 0xFFFFFFFF wraps the cursor to name-1 inside the blob, so the later decodes pass and __set_xattr() stores name_len=-1. Every listxattr then runs memcpy(dest, name, (size_t)-1) with no race. 64-bit is unaffected because the blob is at most 16 MiB, but no Kconfig option gates 32-bit CephFS.\nPR:N - The attacker is, or has compromised, the MDS the client mounted and needs no account or privilege on the victim host. The kernel copies the xattr blob from the MDS reply or cap grant verbatim and checks nothing inside it before __build_xattrs() parses it.\nUI:R - ceph_fs_type has no FS_USERNS_MOUNT, so an admin on the victim has to mount the attacker's cluster. A process then has to call listxattr() (or setxattr(), which reaches __ceph_build_xattrs_blob) on the hostile inode, because __get_xattr() never matches the negative-length entry.\nS:U - The overflow stays inside the client kernel's own heap. No hypervisor, VM or IOMMU boundary is crossed, and the impact stays in the client host's kernel.\nC:H - __copy_xattr_names() copies blob bytes supplied by the MDS at least 2 GiB past the listxattr kvmalloc buffer. With a blob over 4 MiB, vmalloc puts it behind a guard page, so the MDS picks the overrun length and its content. That heap corruption primitive can be turned into kernel memory disclosure.\nI:H - The overflow writes bytes the attacker controls into neighbouring slab objects of a size class the MDS steers through names_size+count. The same negative length also overflows __ceph_build_xattrs_blob() after a setxattr. That is an out-of-bounds kernel heap write usable for control-flow hijack.\nA:H - A copy of at least 2 GiB on 32-bit always ends in a page fault while ceph_listxattr() holds i_ceph_lock. The client oopses after corrupting heap memory, and the MDS can resend the same blob on every getattr reply."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/xattr.c"],"versions":[{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"8ece97b24aa11f56c01a3652b54b8cf3724b094d","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"cd81c4e2a491c0652226369ce8109e6af348ff04","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"e2079f1bcad6f19fe690a46a90a1e4246884f767","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"b69c4acf01c46155bf5225a06e6e0a8bcdaeb8c4","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"082e1416aab544c25fbb8e2aee95e332f6e00c43","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"6f8082c1fb88f478826d355ec3cefc6ff09da6e1","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"4348550560ec3af12b234e447210d71b51738b92","status":"affected","versionType":"git"},{"version":"355da1eb7a1f91c276b991764e951bbcd8047599","lessThan":"166375898d29fea050a9abec855da6075050d5c9","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ceph/xattr.c"],"versions":[{"version":"2.6.34","status":"affected"},{"version":"0","lessThan":"2.6.34","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.34","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8ece97b24aa11f56c01a3652b54b8cf3724b094d"},{"url":"https://git.kernel.org/stable/c/cd81c4e2a491c0652226369ce8109e6af348ff04"},{"url":"https://git.kernel.org/stable/c/e2079f1bcad6f19fe690a46a90a1e4246884f767"},{"url":"https://git.kernel.org/stable/c/b69c4acf01c46155bf5225a06e6e0a8bcdaeb8c4"},{"url":"https://git.kernel.org/stable/c/082e1416aab544c25fbb8e2aee95e332f6e00c43"},{"url":"https://git.kernel.org/stable/c/6f8082c1fb88f478826d355ec3cefc6ff09da6e1"},{"url":"https://git.kernel.org/stable/c/4348550560ec3af12b234e447210d71b51738b92"},{"url":"https://git.kernel.org/stable/c/166375898d29fea050a9abec855da6075050d5c9"}],"title":"ceph: validate encoded xattr name lengths","x_generator":{"engine":"bippy-1.2.0"}}}}