# CVE-2023-53867: ceph: fix potential use-after-free bug when trimming caps

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2025-12-24T10:55:25.430Z
- Modified: 2026-10-15T22:17:50.440Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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

ceph: fix potential use-after-free bug when trimming caps

When trimming the caps and just after the 'session->s_cap_lock' is
released in ceph_iterate_session_caps() the cap maybe removed by
another thread, and when using the stale cap memory in the callbacks
it will trigger use-after-free crash.

We need to check the existence of the cap just after the 'ci->i_ceph_lock'
being acquired. And do nothing if it's already removed.

(As written by CVE List.)

## Affected

- Linux Linux: from 2f2dc053404febedc9c273452d9d518fb31fde72 before 2b2515b8095cf2149bef44383a99d5b5677f1831; from 2f2dc053404febedc9c273452d9d518fb31fde72 before 448875a73e16ba7d81dec9274ce9d33a12d092fb; from 2f2dc053404febedc9c273452d9d518fb31fde72 before ae6e935618d99cdba11eab4714092e7e5f13cf7e; from 2f2dc053404febedc9c273452d9d518fb31fde72 before aaf67de78807c59c35bafb5003d4fb457c764800; 2.6.34 (not affected: before 2.6.34; from 6.1.28 up to 6.1.*; from 6.2.15 up to 6.2.*; from 6.3.2 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/2b2515b8095cf2149bef44383a99d5b5677f1831>
- <https://git.kernel.org/stable/c/448875a73e16ba7d81dec9274ce9d33a12d092fb>
- <https://git.kernel.org/stable/c/ae6e935618d99cdba11eab4714092e7e5f13cf7e>
- <https://git.kernel.org/stable/c/aaf67de78807c59c35bafb5003d4fb457c764800>

## Sources

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

---

Page: https://cve.day/CVE-2023-53867 · Whole record: https://cve.day/CVE-2023-53867.json · Rebuilt by cve.day 2026-11-25T22:58:35.130Z
