CVE-2026-52962: Linux Kernel Ceph Extended Attribute Buffer Leak
A memory management flaw in the Linux kernel's Ceph filesystem driver causes buffer objects to persist in memory without being properly released. When extended attributes are set on files, a retry mechanism can cause a buffer reference to be overwritten without freeing the old buffer first, leading to a memory leak. While the leak itself may seem benign, it occurs in kernel-controlled memory management and could enable privilege escalation or denial-of-service conditions on affected systems.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-787
- Affected products
- 8 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-07-14
NVD description (verbatim)
In the Linux kernel, the following vulnerability has been resolved: ceph: fix a buffer leak in __ceph_setxattr() The old_blob in __ceph_setxattr() can store ci->i_xattrs.prealloc_blob value during the retry. However, it is never called the ceph_buffer_put() for the old_blob object. This patch fixes the issue of the buffer leak.
8 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-52962 addresses a resource leak in the Linux kernel's __ceph_setxattr() function, part of the Ceph distributed filesystem implementation. During extended attribute (xattr) operations, the function stores a reference to ci->i_xattrs.prealloc_blob in old_blob. If retry logic is triggered, the old_blob reference can be overwritten without invoking ceph_buffer_put() to decrement the reference counter and free the associated memory. This violates proper buffer lifecycle management, resulting in unreleased kernel memory that accumulates over repeated setxattr calls. The vulnerability is classified as CWE-787 (out-of-bounds write), though the core issue is a reference-counting error leading to use-after-free or double-free conditions.
Business impact
For organizations operating Ceph storage clusters or using Linux systems with Ceph clients, this vulnerability poses moderate operational risk. Repeated xattr operations—common in containerized environments, microservices platforms, and network-attached storage scenarios—can trigger the leak, gradually consuming kernel memory. On memory-constrained systems or those handling high-volume file metadata operations, this can degrade performance, trigger OOM killer behavior, or crash the kernel. Unprivileged local attackers can exploit this for denial-of-service. The HIGH CVSS score reflects the potential for confidentiality, integrity, and availability impact when combined with privilege escalation vectors in the broader kernel attack surface.
Affected systems
The vulnerability affects all versions of the Linux kernel with Ceph filesystem support enabled. This includes distributions with Ceph client or server functionality active, as well as cloud platforms and container orchestration environments (Kubernetes, OpenStack) that expose Ceph storage to guest or node systems. Desktop and enterprise Linux systems using Ceph mounts or the RBD (RADOS Block Device) subsystem are in scope. The impact is most acute in multi-tenant or high-concurrency scenarios where many processes perform metadata operations simultaneously.
Exploitability
Exploitation requires local access to a system with Ceph filesystem support active and the ability to perform setxattr operations—capabilities available to unprivileged local users. No network vector or special privilege is needed for triggering the leak itself. However, weaponizing a memory leak into tangible privilege escalation or data exfiltration typically requires chaining with other kernel vulnerabilities or exploiting platform-specific memory layout assumptions. The CVSS vector (AV:L/AC:L/PR:L/UI:N) reflects the local, unprivileged nature of the attack. This is not a zero-day in the wild or actively exploited, and no public proof-of-concept is documented.
Remediation
Apply kernel security updates addressing this issue. Patch versions vary by distribution; consult your vendor's security advisory for specific release numbers. For Ceph-specific environments, ensure both kernel and Ceph client packages are updated in lockstep. Temporary mitigation on non-critical systems includes disabling Ceph filesystem support if not in active use, or rate-limiting xattr operations via LSM policies or cgroup restrictions. Full remediation requires a kernel reboot to activate the patched code.
Patch guidance
Update the Linux kernel to a version incorporating the __ceph_setxattr() fix. Verify against your distribution's security advisory (Red Hat, Canonical, SUSE, etc.) for the specific patched kernel version. The fix involves ensuring ceph_buffer_put() is called on the old_blob reference before it is overwritten. Test the patch in a staging environment, particularly for systems relying heavily on Ceph metadata operations, to confirm stability. Prioritize systems exposed to untrusted user namespaces or container workloads.
Detection guidance
Monitor kernel logs for memory allocation failures, OOM killer invocations, or unexpected kernel memory growth over time. In Ceph-specific deployments, track client-side xattr operation frequency and correlate with memory pressure metrics. Tools such as 'slabtop' or eBPF-based memory profilers can pinpoint kernel buffer slab fragmentation. Network-level detection is not applicable; focus on host-based monitoring of /proc/meminfo, dmesg, and Ceph cluster health metrics. Forensic recovery is limited, as the leak manifests as gradual memory exhaustion rather than discrete events.
Why prioritize this
Assign HIGH priority if your environment relies on Ceph for storage or metadata-intensive workloads, or if local user isolation is weak. Prioritize HIGH for systems in multi-tenant cloud or container platforms where unprivileged users routinely perform file operations. Assign MEDIUM priority for single-user workstations or systems where Ceph is not actively used. The HIGH CVSS score and ease of local trigger warrant prompt patching on exposed systems, though the lack of remote exploitability and active exploitation reduces urgency relative to network-facing vulnerabilities.
Risk score, explained
The CVSS 3.1 score of 7.8 (HIGH) reflects a local attack vector requiring unprivileged user access (low privilege bar), low attack complexity (trivial to trigger memory leak), and high impact across confidentiality, integrity, and availability. The score assumes that memory exhaustion or privilege escalation chaining could enable an attacker to read sensitive kernel memory, corrupt kernel state, or crash the system. The absence of remote exploitability and the need for local access prevent a CRITICAL rating. The score is calibrated for the kernel's privileged execution context and the broad applicability of Ceph in modern infrastructure.
Frequently asked questions
Can this vulnerability be exploited remotely?
No. The vulnerability requires local access to a system with Ceph filesystem support enabled and the ability to call setxattr operations. Remote attackers cannot trigger it without first compromising a local account or leveraging a separate remote code execution vulnerability.
Will this leak memory on every xattr operation?
No. The leak occurs specifically when the __ceph_setxattr() retry logic is invoked, which happens under contention or race conditions. Typical setxattr calls may not trigger the leak, but repeated or concurrent operations increase the likelihood of hitting the vulnerable code path.
Do I need to patch if I'm not using Ceph?
If your kernel is built without CONFIG_CEPH_FS, you are not affected. However, many distributions enable Ceph support by default. Verify your kernel configuration or apply the patch as part of routine security updates to eliminate the risk.
What's the relationship between this buffer leak and privilege escalation?
The leak itself does not directly grant elevated privileges. However, kernel memory exhaustion or heap spray techniques enabled by repeated leaks could corrupt adjacent kernel structures or enable use-after-free exploitation chains that lead to privilege escalation. This is why the CVSS impact ratings are high.
This analysis is based on the CVE description and CVSS vector as of the published date. Actual affected kernel versions, patch releases, and distribution-specific guidance vary and should be verified against official vendor advisories before patching. No working exploit code is provided or endorsed. This page does not constitute professional security advice; engage qualified security personnel for your specific infrastructure. References to future or hypothetical mitigation strategies are illustrative and require validation in your environment. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10883HIGHType Confusion in Chrome ANGLE Graphics Library
- CVE-2026-10897HIGHCritical Chrome GPU Sandbox Escape Vulnerability
- CVE-2026-10907HIGHChrome ANGLE Out-of-Bounds Write – Remote Code Execution Risk
- CVE-2026-10941HIGHSkia Out-of-Bounds Memory Vulnerability in Chrome – Urgent Patch Required
- CVE-2026-11091HIGHCritical Chrome Memory Corruption Vulnerability in Dawn Graphics Engine
- CVE-2026-11173HIGHChrome V8 Out-of-Bounds Write Sandbox Escape – Patch Guidance
- CVE-2026-12019HIGHChrome Heap Overflow & Sandbox Escape (Linux, ChromeOS)
- CVE-2026-46123HIGHLinux Kernel Virtio Bluetooth Memory Disclosure Vulnerability