Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-89649

ceph: bound xattr value length in __build_xattrs()
Back to all
CVE

CVE-2026-89649

ceph: bound xattr value length in __build_xattrs()

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

ceph: bound xattr value length in _buildxattrs()

_buildxattrs() 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

cephdecode32_safe(), but the value bytes themselves are advanced over

with a bare "p += len" and no cephdecodeneed() check that "len" bytes

remain in the blob.

For every attribute except the last, the next iteration's

cephdecode32_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

(cephbuffernew() in cephfillinode()). _setxattr() 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

cephdecodeneed() so an out-of-bounds value length on the final

attribute fails the decode and returns -EIO instead of being stored.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
C
H
U
-

Related Resources

No items found.

References

https://git.kernel.org/stable/c/01e3f19c301d492e12f16b3b463ac14d7cf3ebe7, https://git.kernel.org/stable/c/1dd356310b1660215f9a3626580bf8b363ef981e, https://git.kernel.org/stable/c/38be2f3c41ecaba58bb92dc16603e09ba9fd64f1, https://git.kernel.org/stable/c/61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce, https://git.kernel.org/stable/c/68d541754d6cd3bb98d1fd8314f57e5eb533557d, https://git.kernel.org/stable/c/848b80ca6b410f350d08b8ac19a00ef88223f2ea, https://git.kernel.org/stable/c/b12b3320c81fd72ab36388fb2445fec9c3038f10, https://git.kernel.org/stable/c/cb0cd79ae80476d1bc06bd9678484b6736f19588, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89649.json, https://nvd.nist.gov/vuln/detail/CVE-2026-89649, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Severity

9.1

CVSS Score
0
10

Basic Information

Base CVSS
9.1
EPSS Probability
0.00678%
EPSS Percentile
0.50842%
Introduced Version
355da1eb7a1f91c276b991764e951bbcd8047599,2.6.34,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,6.19.0,0
Fix Available
68d541754d6cd3bb98d1fd8314f57e5eb533557d,5.10.270,5.15.221,6.1.188,6.6.157,6.12.109,6.18.50,7.2.4,6.12.111-1~deb12u1,6.12.111-1,0:6.12.0-207.111.5.1.el10uek,0:6.12.0-207.111.5.1.el9uek

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading