# CVE-2026-99898: ceph: Fix xattr buffer leak in __send_cap()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:05.230Z
- Modified: 2026-11-30T14:20:25.223Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 16d68903f56ae277446cc2d24ab18db835363eda before 66e7c02930b6d3e473ca87965dc4749b3f20ce3b; from 16d68903f56ae277446cc2d24ab18db835363eda before e1145588ceaed15486ff938e2cb53a50ea791d77; from 16d68903f56ae277446cc2d24ab18db835363eda before 1cd2b04669ee1eb8826d5e51bde682fb930cc022; from 16d68903f56ae277446cc2d24ab18db835363eda before d2a4bb38201694294052d1ffe3ce4630d3693a99; from 16d68903f56ae277446cc2d24ab18db835363eda before 0ef457d642a492d1e8ec62ed168de1f9e2534b05; from 16d68903f56ae277446cc2d24ab18db835363eda before 112f3dba7af4da07c95151e6236213ba7c6b00c9; from 16d68903f56ae277446cc2d24ab18db835363eda before dabe2280fa8dd8d84ebaaf5fb5c45b6d778fc6c1; from 16d68903f56ae277446cc2d24ab18db835363eda before e51cf76e7275d1bb5ad2d529bb00feade632dadc; 5.10 (not affected: before 5.10; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-99898](https://www.cve.org/CVERecord?id=CVE-2026-99898), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99898](https://nvd.nist.gov/vuln/detail/CVE-2026-99898), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99898 · Whole record: https://cve.day/CVE-2026-99898.json · Rebuilt by cve.day 2026-11-30T14:33:32.899Z
