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 8DAB93E48E for ; Wed, 6 Mar 2024 06:45:55 +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=1709707555; cv=none; b=cMazd42y6maK2OlhUwjVHXpn6PTGbKqwycQedPRiNh4Rxcs4LDmxn4ZlDLRcgf64WY+tGFVwMQiPP4/y85N7HULuJX1eNKN4DyWub5/tCvMMSeRNrqbZ+yFKRmjV35KZsHnvenCCzxk+g9T2Dpvqo1izLlDWn9fR8DhXVsQ12VY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707555; c=relaxed/simple; bh=+Q1aFmcKZ+wX1d1xqlfA/MEkRkhhkDun+nHtIVHKYUw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NwnYUi+7vHdO/HMzykqhsbZwS1czWlX7Ar+tPch3/HdEXYLKj5HZ7PbJbpOK5HOEdUUkxfFt5zs95GlXnFsoKClMUGX4qZhopzIZDi72p8GB1z6QdZWCCCfYHaUHT3bVW2JuOf8n35YDv/BJUv0wdT40O4BUjqGq+SJ+KplUSVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xqxEEFyA; 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="xqxEEFyA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F98C433F1; Wed, 6 Mar 2024 06:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709707555; bh=+Q1aFmcKZ+wX1d1xqlfA/MEkRkhhkDun+nHtIVHKYUw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xqxEEFyApCF94p4bN5kxmlNma2uQE9S4flVK1rKzmKak9OV0RqvXKB1N+xZ19RtJu lP6MBXFI31suhqhalTigMWhrtzL6WOIeZkyhL+cRdNq2ODTCpNhQ/jWkQ5/xofge4V 3ocWMwJIGi4jSmXTJ1sZfA5Df5H1gwkptvA+i3Oo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52583: ceph: fix deadlock or deadcode of misusing dget() Date: Wed, 6 Mar 2024 06:45:41 +0000 Message-ID: <2024030641-CVE-2023-52583-fd38@gregkh> X-Mailer: git-send-email 2.44.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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+Q1aFmcKZ+wX1d1xqlfA/MEkRkhhkDun+nHtIVHKYUw=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkvBEXnnn1wm3FBnfJKS8cvkz21MjYpKwvIvg98uSXoY vrhz4sudsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBENFIYFrQbatpISN3nPPNO 6VPP6WuPurRuZDHMr89fcPrZlpuCjgwr/nydtuDJ9XnVywA= 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: fix deadlock or deadcode of misusing dget() The lock order is incorrect between denty and its parent, we should always make sure that the parent get the lock first. But since this deadcode is never used and the parent dir will always be set from the callers, let's just remove it. The Linux kernel CVE team has assigned CVE-2023-52583 to this issue. Affected and fixed versions =========================== Fixed in 4.19.307 with commit eb55ba8aa7fb Fixed in 5.4.269 with commit 6ab4fd508fad Fixed in 5.10.210 with commit e016e358461b Fixed in 5.15.149 with commit a9c15d6e8aee Fixed in 6.1.77 with commit 7f2649c94264 Fixed in 6.6.16 with commit 196b87e5c00c Fixed in 6.7.4 with commit 76cb2aa3421f Fixed in 6.8-rc1 with commit b493ad718b1f Please see https://www.kernel.org or 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-52583 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 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/eb55ba8aa7fb7aad54f40fbf4d8dcdfdba0bebf6 https://git.kernel.org/stable/c/6ab4fd508fad942f1f1ba940492f2735e078e980 https://git.kernel.org/stable/c/e016e358461b89b231626fcf78c5c38e35c44fd3 https://git.kernel.org/stable/c/a9c15d6e8aee074fae66c04d114f20b84274fcca https://git.kernel.org/stable/c/7f2649c94264d00df6b6ac27161e9f4372a3450e https://git.kernel.org/stable/c/196b87e5c00ce021e164a5de0f0d04f4116a9160 https://git.kernel.org/stable/c/76cb2aa3421fee4fde706dec41b1344bc0a9ad67 https://git.kernel.org/stable/c/b493ad718b1f0357394d2cdecbf00a44a36fa085