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 EEC821F4E3D for ; Fri, 27 Dec 2024 14:25:13 +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=1735309514; cv=none; b=l2bfQriU8bgAUkgZDRABMtuUKNmQFT8UaK/Gs3otYHR3gELc7Y8ZmC/9kUqNNXx3uEzMttjir5iEQuddRGtjLKGOVjwbnnhDO+PTxBeXAA85gkARUfZPrikJvz3tQ/lTGeyaS15NqDcQxD/fgeEEnFpt64K+A57PThu8fA37XTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309514; c=relaxed/simple; bh=K/hhDB03cs9r83FOyzwCQeWkxuyG0waFllxpjg+eLBQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l/mDb4pSY4EVzOzmWV2DmRWg/cWFVw+enWvy5eiKM9NOUBLWyxJ9bYnPoGv9RRzaKnhcLAVvYl0VWSPsjtV8Z0SDvksepL/QAlDknM9mY2Vu/p70c9pCxydCp5/cJnn4zHsak7mlo5VUy/WE9n3gydULlv5n00MLZgvYFgvysy4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VQY9MOpr; 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="VQY9MOpr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EFC6C4CED0; Fri, 27 Dec 2024 14:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309513; bh=K/hhDB03cs9r83FOyzwCQeWkxuyG0waFllxpjg+eLBQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VQY9MOprKxjEM6LD0ESrqkUNVrb/ohX+9ByHhcsTYLmnnHxXRtRD8rs0UU0nsMimT OZcF/+pjY2KZHeM0Sr6k+7Mcag7dvmK2ipvAFiNPrwAL109hQVl004sek5bzvrzawS AedE9/1+K8WYnNBd4bqP7RBKRsJOP3pvpjXoeM1c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56564: ceph: pass cred pointer to ceph_mds_auth_match() Date: Fri, 27 Dec 2024 15:23:15 +0100 Message-ID: <2024122714-CVE-2024-56564-7587@gregkh> X-Mailer: git-send-email 2.47.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2038; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K/hhDB03cs9r83FOyzwCQeWkxuyG0waFllxpjg+eLBQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O4JMIyXupt9l1PAzPtbSufrMbrkfrnPsnIWPiZX+n uDhvaimI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC5MAwP+iqRGhlazerhr+5 w2+347vFDmYdY1hw4CzD542ZTzS4TdbKXnwg0b+Cz3AfAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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