From mboxrd@z Thu Jan 1 00:00:00 1970 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 C7EE6199EB7 for ; Sat, 11 Jan 2025 12:36:54 +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=1736599014; cv=none; b=WqDuIOgxP99qVLenb7LjIfU0EH5VFExqNPTc3ekcv081V4omtBqst3LEWd7XJCJ1HrG97TYZUKfngcPgxoY1H55QEmSkcphGsVIM5pfuYV5A8HJoqoN0nPWYz67D7iAlYGadKOccFSryzb0vF8ZisNT/LwJQ/QPNicY++WUSwts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736599014; c=relaxed/simple; bh=wlKU2tLIOTEObvoX1vSJAq8aZbNAxM5MATzVvLMY9X0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tp0PHbEaZEI701rNJw9x4kdkSDzrygqLw1o8h4e+J7ej8+AEBtYlDuAINdvCJVr8+6YzDxrOpjCWnABh+13pY2bx/xbrmizNP9dgQWY3qbcqoaAEUy5fZhDt+uLXICmKZtQijlarlDrQ2sz0p2TQSMwtNBeUcYOwhJZzF0rn3zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rW71VTbB; 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="rW71VTbB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31094C4CED2; Sat, 11 Jan 2025 12:36:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736599014; bh=wlKU2tLIOTEObvoX1vSJAq8aZbNAxM5MATzVvLMY9X0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rW71VTbBByIqFhetn8AkKpYZqzqdUYa0SUS6SQick0BxeOj25ecl7xTEYk7zgqj1W KfuB9M1aPxsLzT5i8CQGoeUdvF0MkVoLK3j++YKmjkou802pyfegW9bKNKpc8EZ+o4 3sk9UAHCtbow1UqgX8Uu2P86rrTwP1FhAjjcMUyo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53685: ceph: give up on paths longer than PATH_MAX Date: Sat, 11 Jan 2025 13:35:50 +0100 Message-ID: <2025011143-CVE-2024-53685-e6c3@gregkh> X-Mailer: git-send-email 2.48.0 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=2176; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wlKU2tLIOTEObvoX1vSJAq8aZbNAxM5MATzVvLMY9X0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNqQuyFIsuTWFbOn+rw25ObcGvc86em7BK3n/Ot9/uV 8OsUqNiO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAij08zzGIuU203XyB1iPf4 3rkNc9nPf16ceoBhwcSO/dKVXV9X33t19OM+zyliK7Z8fwIA 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: give up on paths longer than PATH_MAX If the full path to be built by ceph_mdsc_build_path() happens to be longer than PATH_MAX, then this function will enter an endless (retry) loop, effectively blocking the whole task. Most of the machine becomes unusable, making this a very simple and effective DoS vulnerability. I cannot imagine why this retry was ever implemented, but it seems rather useless and harmful to me. Let's remove it and fail with ENAMETOOLONG instead. The Linux kernel CVE team has assigned CVE-2024-53685 to this issue. Affected and fixed versions =========================== Fixed in 6.6.70 with commit c47ed91156daf328601d02b58d52d9804da54108 Fixed in 6.12.7 with commit 99a37ab76a315c8307eb5b0dc095d8ad9d8efeaa Fixed in 6.13-rc4 with commit 550f7ca98ee028a606aa75705a7e77b1bd11720f 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-53685 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/c47ed91156daf328601d02b58d52d9804da54108 https://git.kernel.org/stable/c/99a37ab76a315c8307eb5b0dc095d8ad9d8efeaa https://git.kernel.org/stable/c/550f7ca98ee028a606aa75705a7e77b1bd11720f