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 5CB601A5B95 for ; Wed, 26 Feb 2025 01:58:19 +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=1740535100; cv=none; b=WdxXlGkbH36B3qliZE6xthWwqjGk6PXVP9v4am9jLvsIe9DlHzxd+QK2Sg3cWl3HTGLP2WBH/U05/DUfDEz11Uv03Diz1c0tdmVm+ToAP1jJ7wSJi0kt9s6TJWBQ6mUfojfkW7F01hZiVYK1yHAPtKt2kRuqFuvRde6E758V/As= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535100; c=relaxed/simple; bh=9XtT++E4O0982W8lJLIpxRPMqyLSGINuEt83jgKun1c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EMTxi/X7weJqsrVrh40Nmfm5LsVPNsT4rr+7TbYvfS98RnbiUZONFmEJDGsBnTHm1O1HRm88jOU4BFpABLPQMrICIUX3v4KESqxmFAyaDnrn8DlkRVXu7dVw5u6zgPgVoCWustDc0PnAGDKGjUAIEw+pq/Gj16l0hSk4wUVXqlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lwv7KfBE; 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="Lwv7KfBE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA5DFC4CEDD; Wed, 26 Feb 2025 01:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535099; bh=9XtT++E4O0982W8lJLIpxRPMqyLSGINuEt83jgKun1c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lwv7KfBEaZN5xFp0Sq7ATwq3RMTptVeRRtWKBK4XyyB9z+yNrEX9Jr3Y5L0IrrFnS cr80Sbeh3fwHmfrNdzmvB8qpewW6tH84D1QtpPnFTplMAyXVqO0vvwnOXbu7oYgihe 7dTFBiBmFLp/lc0cR3IrkrYTIFVWgYsmZpJW5+LM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49107: ceph: fix memory leak in ceph_readdir when note_last_dentry returns error Date: Wed, 26 Feb 2025 02:55:12 +0100 Message-ID: <2025022601-CVE-2022-49107-03bc@gregkh> X-Mailer: git-send-email 2.48.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=2178; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9XtT++E4O0982W8lJLIpxRPMqyLSGINuEt83jgKun1c=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SizP/T3kFXCJX2PH17KomZ/fnPDb9215+gPNK/eZd j3nefD0X0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5Pk8hjk8W0JrOfaeel7f xnVmvompq7C3EBPDgv61T1bfUmyXXHPA7/rdqOa39ZOvrQMA 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 memory leak in ceph_readdir when note_last_dentry returns error Reset the last_readdir at the same time, and add a comment explaining why we don't free last_readdir when dir_emit returns false. The Linux kernel CVE team has assigned CVE-2022-49107 to this issue. Affected and fixed versions =========================== Fixed in 5.10.111 with commit f4429786129648a8f4bb1e5faa143c4478cc5c4a Fixed in 5.15.34 with commit 2fe82d3254029ef9ec4e7be890125d5ef4f537de Fixed in 5.16.20 with commit e792575b902a3939ca482491ee9fb3a236f99640 Fixed in 5.17.3 with commit 7f740ede35132d3d5d19747cad56a511d21bb156 Fixed in 5.18 with commit f639d9867eea647005dc824e0e24f39ffc50d4e4 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-2022-49107 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/dir.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/f4429786129648a8f4bb1e5faa143c4478cc5c4a https://git.kernel.org/stable/c/2fe82d3254029ef9ec4e7be890125d5ef4f537de https://git.kernel.org/stable/c/e792575b902a3939ca482491ee9fb3a236f99640 https://git.kernel.org/stable/c/7f740ede35132d3d5d19747cad56a511d21bb156 https://git.kernel.org/stable/c/f639d9867eea647005dc824e0e24f39ffc50d4e4