ceph: Fix xattr buffer leak in __send_cap()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

ceph: Fix xattr buffer leak in __send_cap()

__prep_cap() takes a reference on the xattr blob via ceph_buffer_get() and also grabs a reference to the old xattr blob returned by __ceph_build_xattrs_blob(). These references are normally dropped in __send_cap() after the cap message has been sent, but when ceph_msg_new() fails, __send_cap() requeues the cap and returns early without dropping them, leaking both buffers on every allocation failure.

Release arg->old_xattr_buf and arg->xattr_buf on the ceph_msg_new() failure path before returning.

ProductVersions
Linux Linux16d68903f56ae277446cc2d24ab18db835363eda to before 66e7c02930b6d3e473ca87965dc4749b3f20ce3b Affected16d68903f56ae277446cc2d24ab18db835363eda to before e1145588ceaed15486ff938e2cb53a50ea791d77 Affected16d68903f56ae277446cc2d24ab18db835363eda to before 1cd2b04669ee1eb8826d5e51bde682fb930cc022 Affected16d68903f56ae277446cc2d24ab18db835363eda to before d2a4bb38201694294052d1ffe3ce4630d3693a99 Affected16d68903f56ae277446cc2d24ab18db835363eda to before 0ef457d642a492d1e8ec62ed168de1f9e2534b05 Affected16d68903f56ae277446cc2d24ab18db835363eda to before 112f3dba7af4da07c95151e6236213ba7c6b00c9 Affected16d68903f56ae277446cc2d24ab18db835363eda to before dabe2280fa8dd8d84ebaaf5fb5c45b6d778fc6c1 Affected16d68903f56ae277446cc2d24ab18db835363eda to before e51cf76e7275d1bb5ad2d529bb00feade632dadc Affected
Linux Linux5.10 Affectedbefore 5.10 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.