CVE-2026-99889: Linux kernel CephFS client trusts an xattr name length from the metadata server and corrupts memory on 32-bit

ByLinuxtastic

December 1, 2026 #CVE, #Linux Kernel

A CephFS mount receives each file’s extended attributes from the metadata server as an encoded blob, and __build_xattrs() in fs/ceph/xattr.c “advances over an MDS-provided name length before checking that the name remains in the encoded xattr blob”. The record spells out the 32-bit consequence: “UINT_MAX wraps the cursor and is stored as a negative internal name length. A later ordinary listxattr() converts it back to a UINT_MAX memcpy size and corrupts kernel memory.” The kernel CNA scores it 8.8 as a network bug needing user interaction; Red Hat rates it Important with the same 8.8 and notes exposure needs a mount from an untrusted metadata server. If a host mounts CephFS, upgrade it to a kernel at or above 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63 or 7.3.4 and reboot, 32-bit clients and clients of clusters you do not run first.

CVE-2026-99889 at a glance.

ComponentLinux kernel, CephFS client: __build_xattrs() in fs/ceph/xattr.c, the ceph filesystem module, with the corrupting memcpy reached from an ordinary listxattr() on the mount
Affected versionsmainline 2.6.34 up to 7.4-rc1 (from commit 355da1eb, the original CephFS merge); 5.10.x below 5.10.275, 5.15.x below 5.15.226, 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.117, 6.18.x below 6.18.63, 7.3.x below 7.3.4. Every kernel with the CephFS client carries the missing check; the record describes the memory corruption on 32-bit clients
Fixed inmainline 7.4-rc1 (commit 16637589, the one Debian cites as upstream) and stable 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4; eight fix commits in the record. The fix checks “the name range before advancing” and rejects “name, value, or aggregate sizes that overflow the signed internal accounting”
Severitykernel CNA CVSS 3.1 8.8 High (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, the user interaction being the listxattr() that trips the stored length); NVD Received with no score, CWE or CPE of its own. Red Hat Important, 8.8 with the same vector, CWE-787 (out-of-bounds write), score marked draft; Ubuntu and SUSE not reachable; Alpine not consulted. The two readings agree, which is unusual for this burst
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30, released 30 November). EPSS: no score yet on 1 December 2026
Who is exposedhosts that mount CephFS from a metadata server they do not fully trust, above all 32-bit ones (armhf and i386 boards, 32-bit containers are not affected since the kernel is the host’s); Red Hat’s position is that the Ceph client is not loaded by default and that exposure requires a mount from an untrusted metadata server, with corrupted kernel memory leading to a local crash or privilege escalation. The blob arrives over the authenticated MDS session, so the attacker is a metadata server, someone who has taken one over, or someone holding the session keys. On 64-bit clients the record describes no wrap, though the missing bounds check is present and the fix applies everywhere
PublishedCVE record 30 November 2026 (kernel CNA, updated 1 December); this page built 1 December 2026, last updated 1 December 2026

What it is

When CephFS fetches an inode’s metadata the MDS can include its extended attributes in one encoded blob: a count, then for each attribute a name length, the name, a value length and the value. __build_xattrs() walks that blob and builds the in-memory xattr list the client later serves to getxattr() and listxattr(). The walk advanced the cursor by the name length before confirming the name still lay within the blob, so a hostile length was accepted and stored.

The record describes what happens on a 32-bit client: a name length of UINT_MAX “wraps the cursor and is stored as a negative internal name length”, because the client’s accounting is signed. Nothing goes wrong until a process runs listxattr() on the file, which “converts it back to a UINT_MAX memcpy size and corrupts kernel memory”. That is why the CNA’s vector carries UI:R: the server plants the length, and an ordinary user on the client, or the client’s own tooling, triggers the write. The commit reports that “the malformed blob corrupted kernel state in two baseline boots” and “was rejected cleanly twice with this change”.

The fix is in one file, fs/ceph/xattr.c: “Check the name range before advancing and reject name, value, or aggregate sizes that overflow the signed internal accounting.” The sibling fix for the readdir reply count (CVE-2026-99896) closes a second 32-bit wrap in the same client the same day, and two libceph fixes (CVE-2026-99895 and CVE-2026-99902) cover the layer beneath; all four are in related reading. git.kernel.org refused our reader, so the diff is described from the CNA’s copy of the commit message.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianFixed in trixie (6.12.117-1), trixie’s security update, forky and sid; bookworm’s 6.1 kernel (6.1.192-3) vulnerable; no DSA or DLA on 1 December 2026trixie 6.12.117-1 (security 6.12.118-1); forky and sid 7.3.6-1; nothing for bookworm
UbuntuTracker unreachable on 1 December 2026 (client error on two attempts); nothing inferred—
RHEL, Rocky, Alma, CentOS StreamImportant, 8.8, CWE-787 (bug 2586292); affected on RHEL 7, 8, 9 and 10 (kernel and kernel-rt) and the OpenShift RHCOS images; RHEL 6 not affected; no erratanot yet
openSUSE/SLETracker unreachable on 1 December 2026 (client error on two attempts); nothing inferred—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.275 / 5.15.226 / 6.1.193 / 6.6.163 / 6.12.117 / 6.18.63 / 7.3.4 or later

How to check

Three questions, in order: which kernel is running, is this a 32-bit kernel, and does the host mount CephFS and from whom. A 64-bit host with no CephFS mount can take the fix on its normal schedule.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. word size: the wrap the record describes happens only on 32-bit kernels
uname -m; getconf LONG_BIT

# 3. is the CephFS client loaded, and which metadata servers it talks to
lsmod | grep -E '^(ceph|libceph)\b'
grep -E ' ceph ' /proc/mounts
cat /sys/kernel/debug/ceph/*/mdsc 2>/dev/null | head

A kernel at or above the fixed stable version for its series is done. A host with no ceph mount is not reachable by this bug. A 32-bit host with a CephFS mount is the case the record describes, and if the cluster’s metadata servers are not under your administration it should reboot first; a 64-bit host with a mount carries the missing check and should take the fix in the same window, since the record does not say the 64-bit path is safe, only that the wrap it reproduced is a 32-bit one.

How to fix it

Install the fixed kernel and reboot; a mounted CephFS keeps the old module in memory until the host boots the new image. Debian trixie’s point release and security update both carry it; Ubuntu, Red Hat and SUSE were pending or unreachable on 1 December 2026.

# Debian trixie / forky / sid
apt update && apt install linux-image-amd64 && systemctl reboot       # or linux-image-arm64, linux-image-armmp
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf upgrade kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r

There is no mount option that validates the blob, so the mitigation before the reboot is on the cluster side (patched, access-controlled metadata servers) and on the client side only in the sense of not running listxattr()-heavy tooling such as backup agents and ls with security labels against a suspect cluster. What not to do: do not disable the user_xattr or security xattr handling on the mount as a “mitigation”, since the blob is parsed when the inode is fetched regardless; and do not assume a 64-bit client is covered by the word-size argument alone, because the check the fix adds is missing there too.

Sources

  • CVE-2026-99889 at CVE.org — the kernel CNA record (30 November 2026, updated 1 December when the CNA added its CVSS 3.1 metric): the commit message with the UINT_MAX wrap and the two-boot validation, the git and version ranges, CVSS 3.1 8.8
  • Fix commits on git.kernel.org: 16637589 (mainline, 7.4-rc1, the commit Debian cites as upstream) and the backports 8ece97b2, cd81c4e2, e2079f1b, b69c4acf, 082e1416, 6f8082c1, 43485505; git.kernel.org refuses automated readers, so the diffs were not read for this page and the fix is described from the CNA’s copy of the commit message
  • NVD entry — Received on 30 November, carrying the CNA’s ranges; no NVD score, CWE or CPE on 1 December
  • Distribution trackers: Debian (trixie 6.12.117-1 fixed, bookworm vulnerable) · Ubuntu (unreachable on 1 December) · Red Hat (Important 8.8, CWE-787, RHEL 7 to 10 affected) · SUSE (unreachable on 1 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS: no score for this CVE on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.