CVE-2026-89649

Source
https://cve.org/CVERecord?id=CVE-2026-89649
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89649.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89649
Downstream
Published
2026-09-11T19:45:40Z
Modified
2026-09-13T03:47:20Z
Summary
ceph: bound xattr value length in __build_xattrs()
Details

In the Linux kernel, the following vulnerability has been resolved:

ceph: bound xattr value length in __build_xattrs()

__build_xattrs() decodes the MDS-supplied xattr blob one attribute at a time. For each attribute it reads a 32-bit name length, advances past the name bytes, reads a 32-bit value length, records the value pointer, and advances past the value bytes. The two length fields are read with ceph_decode_32_safe(), but the value bytes themselves are advanced over with a bare "p += len" and no ceph_decode_need() check that "len" bytes remain in the blob.

For every attribute except the last, the next iteration's ceph_decode_32_safe() on the following name length implicitly verifies that the previous value did not run past the blob end. The final attribute has no successor, so its decoded value length is never checked against the blob bounds. A malicious or compromised metadata server can set the last attribute's value length larger than the bytes actually present in the blob.

The blob is a dedicated kvmalloc() allocation sized to the wire length (ceph_buffer_new() in ceph_fill_inode()). __set_xattr() records the oversized length in xattr->val_len verbatim, and a later getxattr(2) runs memcpy(value, xattr->val, xattr->val_len) into a user-supplied buffer, copying bytes past the end of the allocation back to user space.

Impact: a malicious metadata server discloses adjacent kernel heap bytes to a local user via getxattr(2) on a CephFS file. Add the missing ceph_decode_need() so an out-of-bounds value length on the final attribute fails the decode and returns -EIO instead of being stored.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89649.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
355da1eb7a1f91c276b991764e951bbcd8047599
Fixed
38be2f3c41ecaba58bb92dc16603e09ba9fd64f1
Fixed
1dd356310b1660215f9a3626580bf8b363ef981e
Fixed
b12b3320c81fd72ab36388fb2445fec9c3038f10
Fixed
68d541754d6cd3bb98d1fd8314f57e5eb533557d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89649.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.34
Fixed
6.12.109
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.50
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89649.json"