Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82F44315D30 for ; Wed, 24 Dec 2025 10:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573828; cv=none; b=kp1eeaKlAsd2xib+XVkxtlDoKqVn2T4Uyw2LLKKmXydIoD8Liia8omlgfN28rhQ51J4+dQayLTUliA0zV0i82MNGFb+IsDWNuxobmQe+A62z1YXbAvDt4mrXfqMFvRFJJgzXJBVv6eus4Szm0UJ2RDXUerHqmBu6mKtBW49xYYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573828; c=relaxed/simple; bh=KFKLO/LGClGAw/M3N3D4A5EU6TEK4zsVPHnH2WCiCOM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CP0o0HUMZJjbdU6U0zOC75xqEa8APm0qe4Pua6pYGVKtxlctDT4tgt1x2EuZpA0kBgexywBzPzIV/www+jmErZw3Jcr6CJm+ikcftw6LupVibhjYystUFQZNmGyYIgN43dqEx6eDNRW+WbAtQKNdtruG+CCRn/qYrofT92ooeh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qd2cOS99; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qd2cOS99" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2FB6C4CEFB; Wed, 24 Dec 2025 10:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573828; bh=KFKLO/LGClGAw/M3N3D4A5EU6TEK4zsVPHnH2WCiCOM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qd2cOS99+Z0ZHiQu2OMCUls3Scn104pfEazrqGyOnEE2Jhs13Xm5HA0aEZ60REACr r45oVgWDRqeM13jTx/825/ObLrCEnxc5FgN8ylhyIV+wHYRJT1SSoiDg/wDR2Mvchw syx+HF2JPQ3xdodwyzLdCTkTlwpKLON2z0pomrqY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53867: ceph: fix potential use-after-free bug when trimming caps Date: Wed, 24 Dec 2025 11:56:29 +0100 Message-ID: <2025122422-CVE-2023-53867-cb3e@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2341; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7tC0Erd0+rOwIC1GtltNiEShg69PViFE5BrLYnimb2s=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex65tma/C+fKQV8XrPf/sLv33kVJSdDq7hb1O16vIU uU44+qvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRG/YM89NCfZprt9sWRF0O 3PJMftbKgzvOGjLMj5p6xDqyZuPpk/dthQ/5SVzReHn5GQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2023-53867 to this issue. Affected and fixed versions =========================== Fixed in 6.1.28 with commit 2b2515b8095cf2149bef44383a99d5b5677f1831 Fixed in 6.2.15 with commit 448875a73e16ba7d81dec9274ce9d33a12d092fb Fixed in 6.3.2 with commit ae6e935618d99cdba11eab4714092e7e5f13cf7e Fixed in 6.4 with commit aaf67de78807c59c35bafb5003d4fb457c764800 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2023-53867 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/ceph/caps.c fs/ceph/debugfs.c fs/ceph/mds_client.c fs/ceph/mds_client.h fs/ceph/super.h Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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