CVE-2023-53867

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

State
Published
Severity
9.8 Critical
Published
Dec 24, 2025
Updated
Oct 15, 2026
Reserved
Dec 9, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2f2dc053404febedc9c273452d9d518fb31fde72 to before 2b2515b8095cf2149bef44383a99d5b5677f1831Affected
  • 2f2dc053404febedc9c273452d9d518fb31fde72 to before 448875a73e16ba7d81dec9274ce9d33a12d092fbAffected
  • 2f2dc053404febedc9c273452d9d518fb31fde72 to before ae6e935618d99cdba11eab4714092e7e5f13cf7eAffected
  • 2f2dc053404febedc9c273452d9d518fb31fde72 to before aaf67de78807c59c35bafb5003d4fb457c764800Affected
LinuxLinux
  • 2.6.34Affected
  • before 2.6.34Not affected
  • 6.1.28 through 6.1.*Not affected
  • 6.2.15 through 6.2.*Not affected
  • 6.3.2 through 6.3.*Not affected
  • 6.4 and laterNot affected

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.