# CVE-2026-89649: ceph: bound xattr value length in \_\_build\_xattrs()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-26)
- **Published:** 2026-09-11T19:45:40.118Z
- **Modified:** 2026-10-19T09:18:02.230Z

## Who should check

- Anyone running Linux \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 848b80ca6b410f350d08b8ac19a00ef88223f2ea; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< cb0cd79ae80476d1bc06bd9678484b6736f19588; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 38be2f3c41ecaba58bb92dc16603e09ba9fd64f1; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 1dd356310b1660215f9a3626580bf8b363ef981e; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< b12b3320c81fd72ab36388fb2445fec9c3038f10; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 68d541754d6cd3bb98d1fd8314f57e5eb533557d
- Anyone running Linux 2.6.34

## Description

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.

## Affected and fixed versions

- Linux: \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 848b80ca6b410f350d08b8ac19a00ef88223f2ea; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< cb0cd79ae80476d1bc06bd9678484b6736f19588; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 38be2f3c41ecaba58bb92dc16603e09ba9fd64f1; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 1dd356310b1660215f9a3626580bf8b363ef981e; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< b12b3320c81fd72ab36388fb2445fec9c3038f10; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 68d541754d6cd3bb98d1fd8314f57e5eb533557d (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 68d541754d6cd3bb98d1fd8314f57e5eb533557d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89649. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89649.md
Affected: Linux >= 355da1eb7a1f91c276b991764e951bbcd8047599, < 848b80ca6b410f350d08b8ac19a00ef88223f2ea; >= 355da1eb7a1f91c276b991764e951bbcd8047599, < 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7; >= 355da1eb7a1f91c276b991764e951bbcd8047599, < cb0cd79ae80476d1bc06bd9678484b6736f19588; >= 355da1eb7a1f91c276b9917…
Fixed in: Linux 848b80ca6b410f350d08b8ac19a00ef88223f2ea, Linux 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7, Linux 61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce, Linux 38be2f3c41ecaba58bb92dc16603e09ba9fd64f1, Linux 1dd356310b1660215f9a3626580bf8b363ef981e, Linux 68d541754d6cd3bb98d1fd8314f57e5eb533557d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89649 being exploited?

There is no confirmed exploitation: CVE-2026-89649 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89649?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-89649?

Linux \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 848b80ca6b410f350d08b8ac19a00ef88223f2ea; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< cb0cd79ae80476d1bc06bd9678484b6736f19588; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 38be2f3c41ecaba58bb92dc16603e09ba9fd64f1; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 1dd356310b1660215f9a3626580bf8b363ef981e; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< b12b3320c81fd72ab36388fb2445fec9c3038f10; \>= 355da1eb7a1f91c276b991764e951bbcd8047599, \< 68d541754d6cd3bb98d1fd8314f57e5eb533557d; Linux 2.6.34.

### Is there a fix for CVE-2026-89649?

Yes. Fixed in Linux 848b80ca6b410f350d08b8ac19a00ef88223f2ea, Linux 01e3f19c301d492e12f16b3b463ac14d7cf3ebe7, Linux 61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce, Linux 38be2f3c41ecaba58bb92dc16603e09ba9fd64f1, Linux 1dd356310b1660215f9a3626580bf8b363ef981e, Linux 68d541754d6cd3bb98d1fd8314f57e5eb533557d. Upgrade Linux to 68d541754d6cd3bb98d1fd8314f57e5eb533557d or later.

### How do I check if I'm affected by CVE-2026-89649?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/848b80ca6b410f350d08b8ac19a00ef88223f2ea>
- other: <https://git.kernel.org/stable/c/01e3f19c301d492e12f16b3b463ac14d7cf3ebe7>
- other: <https://git.kernel.org/stable/c/cb0cd79ae80476d1bc06bd9678484b6736f19588>
- other: <https://git.kernel.org/stable/c/61f085cb8976c9cebc90e1a8933e4cc1ad8b0fce>
- other: <https://git.kernel.org/stable/c/38be2f3c41ecaba58bb92dc16603e09ba9fd64f1>
- other: <https://git.kernel.org/stable/c/1dd356310b1660215f9a3626580bf8b363ef981e>
- other: <https://git.kernel.org/stable/c/b12b3320c81fd72ab36388fb2445fec9c3038f10>
- other: <https://git.kernel.org/stable/c/68d541754d6cd3bb98d1fd8314f57e5eb533557d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89649>

HTML: <https://flawdb.com/CVE-2026-89649> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89649>
