CVE-2026-52962: ceph: fix a buffer leak in __ceph_setxattr()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-52962 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.258 with commit 521e5aba857fd267624892c8dd6295f22ce0267e Fixed in 5.15.209 with commit d0cb994605c84a159c1d00d72cdc8583c321ef95 Fixed in 6.1.175 with commit ecf94823c5c6a20790bb76ed2816822b0beb0c22 Fixed in 6.6.141 with commit 4bfdcefdaa6092a06cacd59389c7756b36e6de8c Fixed in 6.12.91 with commit 7d3e8d2d648d5f0df29b4710246680f47695fe94 Fixed in 6.18.33 with commit 3fa13ceefbc5f36131110342743994cb3de80637 Fixed in 7.0.10 with commit bc7abce4460e490dcb579eec770f175b150b685f Fixed in 7.1 with commit 5d3cc36b4e77a27ce7b686b7c59c7072bcb3fa8e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-52962
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ceph/xattr.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/521e5aba857fd267624892c8dd6295f22ce0267e https://git.kernel.org/stable/c/d0cb994605c84a159c1d00d72cdc8583c321ef95 https://git.kernel.org/stable/c/ecf94823c5c6a20790bb76ed2816822b0beb0c22 https://git.kernel.org/stable/c/4bfdcefdaa6092a06cacd59389c7756b36e6de8c https://git.kernel.org/stable/c/7d3e8d2d648d5f0df29b4710246680f47695fe94 https://git.kernel.org/stable/c/3fa13ceefbc5f36131110342743994cb3de80637 https://git.kernel.org/stable/c/bc7abce4460e490dcb579eec770f175b150b685f https://git.kernel.org/stable/c/5d3cc36b4e77a27ce7b686b7c59c7072bcb3fa8e