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 6B4551E1A05 for ; Thu, 1 May 2025 14:11: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=1746108679; cv=none; b=I+p3sIL7u0eBHrt8MKV+A3lBYS+CoF0aljGP3F1pzW9C+4Hx4i3wqYjakwh2ua7uotzi8Qt1A0MC4emDNYsHioyvd8bJnfk1IEigkpqJr5J5zcM8kBjR6j2S/dh7sXq7bzLRLNN6a6U+rxdOQvDG2Dt7zQ7V119gBJUmfamhN7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108679; c=relaxed/simple; bh=C/mXIiSqkltS1rhMUedFEdjmnSTCyBHqlZKJ0VtQOz4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GW1UpQarLSTJqQEm/iMPKgX27pl4YtwHlKVeAdPr0siOTBBQ/yta4bTBLJ8NMHhhWUxPg5o9bDkCacBHlDSYuWbCAIlEt1a2SaNJftCUZyOZfTfUdU9/2BMUm4/mBLn4CWdJ1jCOZYtE67jDWY9lHZ6efNXzDtfR6OYhySKeA78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YFEHvLKn; 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="YFEHvLKn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA15C4CEE3; Thu, 1 May 2025 14:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108679; bh=C/mXIiSqkltS1rhMUedFEdjmnSTCyBHqlZKJ0VtQOz4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YFEHvLKnkKDWJxX3sg1x0r8DbZjeiFZkPBxHxAmP2M8/Io+WOaJgjB+vRtBaq5tsR NodCl0P3B8EEQMadZa1fy2KU1AZHziI2wROu4tc6D0FBY5ggyRYSqYXX/qbbkuVBFM cMxu2gCrqaFd6MqljiedytSyoesY4f3CO0XxY0ME= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49770: ceph: avoid putting the realm twice when decoding snaps fails Date: Thu, 1 May 2025 16:09:20 +0200 Message-ID: <2025050115-CVE-2022-49770-0b74@gregkh> X-Mailer: git-send-email 2.49.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=2389; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XZCG2T2nPgveuM7HjNk8vnmMRdz6tdPis0sIbnDb4tU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDd2/3zJJFZ12vulzoHuyb9Oy7rKVduerBLa8VS70z nb331TUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJ6GaYzbKP0yL5YB/HFXvt +yYGCo91P97QYpgf1bv+X13vct6ue6Yaa3wLdYW5QvIB X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ceph: avoid putting the realm twice when decoding snaps fails When decoding the snaps fails it maybe leaving the 'first_realm' and 'realm' pointing to the same snaprealm memory. And then it'll put it twice and could cause random use-after-free, BUG_ON, etc issues. The Linux kernel CVE team has assigned CVE-2022-49770 to this issue. Affected and fixed versions =========================== Fixed in 4.19.268 with commit 274e4c79a3a2a24fba7cfe0e41113f1138785c37 Fixed in 5.4.226 with commit cb7495fe957526555782ce0723f79ce92a6db22e Fixed in 5.10.157 with commit 044bc6d3c2c0e9090b0841e7b723875756534b45 Fixed in 5.15.81 with commit 2f6e2de3a5289004650118b61f138fe7c28e1905 Fixed in 6.0.10 with commit fd879c83e87735ab8f00ef7755752cf0cbae24b2 Fixed in 6.1 with commit 51884d153f7ec85e18d607b2467820a90e0f4359 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-49770 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/snap.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/274e4c79a3a2a24fba7cfe0e41113f1138785c37 https://git.kernel.org/stable/c/cb7495fe957526555782ce0723f79ce92a6db22e https://git.kernel.org/stable/c/044bc6d3c2c0e9090b0841e7b723875756534b45 https://git.kernel.org/stable/c/2f6e2de3a5289004650118b61f138fe7c28e1905 https://git.kernel.org/stable/c/fd879c83e87735ab8f00ef7755752cf0cbae24b2 https://git.kernel.org/stable/c/51884d153f7ec85e18d607b2467820a90e0f4359