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.
https://git.kernel.org/stable/c/e51cf76e7275d1bb5ad2d529bb00feade632dadc
https://git.kernel.org/stable/c/e1145588ceaed15486ff938e2cb53a50ea791d77
https://git.kernel.org/stable/c/dabe2280fa8dd8d84ebaaf5fb5c45b6d778fc6c1
https://git.kernel.org/stable/c/d2a4bb38201694294052d1ffe3ce4630d3693a99
https://git.kernel.org/stable/c/66e7c02930b6d3e473ca87965dc4749b3f20ce3b
https://git.kernel.org/stable/c/1cd2b04669ee1eb8826d5e51bde682fb930cc022
https://git.kernel.org/stable/c/112f3dba7af4da07c95151e6236213ba7c6b00c9
https://git.kernel.org/stable/c/0ef457d642a492d1e8ec62ed168de1f9e2534b05