Skip to contentSkip to conversation

CVE-2024-56564: ceph: pass cred pointer to ceph_mds_auth_match()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 27, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

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

ceph: pass cred pointer to ceph_mds_auth_match()

This eliminates a redundant get_current_cred() call, because ceph_mds_check_access() has already obtained this pointer.

As a side effect, this also fixes a reference leak in ceph_mds_auth_match(): by omitting the get_current_cred() call, no additional cred reference is taken.

The Linux kernel CVE team has assigned CVE-2024-56564 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 596afb0b8933ba6ed7227adcc538db26feb25c74 and fixed in 6.12.4 with commit ffa6ba7bdb7f07f49c9e9150b0176df066520f62
	Issue introduced in 6.10 with commit 596afb0b8933ba6ed7227adcc538db26feb25c74 and fixed in 6.13-rc1 with commit 23426309a4064b25a961e1c72961d8bfc7c8c990

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-2024-56564

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/mds_client.c

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/ffa6ba7bdb7f07f49c9e9150b0176df066520f62
	https://git.kernel.org/stable/c/23426309a4064b25a961e1c72961d8bfc7c8c990