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 C4D7C2165EC for ; Wed, 26 Feb 2025 02:24:01 +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=1740536641; cv=none; b=hkw488x9Va2gvg2gvD2sqcRtLe2V97cQkoZyKSrdeBwrRITRFWa6mdStVG2IEO1oksx0HiT6kaF/9wx7w5MxS+t+Ghw+wEmq9bYYxpobU5PW6hic87VqMJCXwkW7mOlHyd9bH6Th3QS2ek0Ol+P+6MCVLMfTYL/WqVAhLe8Dd+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536641; c=relaxed/simple; bh=oJ89dtBMWoR/Jy+Djy+LIyNzOjyGhAvMgUaqecKLJFU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qg6/saWk3g3wZpI1womw4yOxHXRfgsvaKQKU1bv+9Ih+2kMYiLTICCX0gZXtj5CrI9uwLjnsXJlqjbw6X61ioBYTedlO5CA4VrdWS9wvC7TLUq5SsDgLjnPxFZ2lZ6TYB9dIoCOILuA7srl4/Wc4DQT6pr5vXokQdzR4lZH9jpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=16HK2avL; 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="16HK2avL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B8E0C4CEE6; Wed, 26 Feb 2025 02:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536641; bh=oJ89dtBMWoR/Jy+Djy+LIyNzOjyGhAvMgUaqecKLJFU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=16HK2avLetBlzOQEMEiOZ4JCLoNC4I5aSNbT2dBIxSPpVbq6C6eXQYnW6YlJRbduH V/xUdhGHr9KoMt770CMqVu4/eBvhnSwpOWu4WsIRtZOLny1iPN2uJG1s+EoheHj2Ud /KFTXMuiypALoyP7pbl3W0C5ZQRV535JBp8zBQ+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49566: crypto: qat - fix memory leak in RSA Date: Wed, 26 Feb 2025 03:22:09 +0100 Message-ID: <2025022605-CVE-2022-49566-66a0@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=2306; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oJ89dtBMWoR/Jy+Djy+LIyNzOjyGhAvMgUaqecKLJFU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qs5+dZxgXxwbfo+Z7fKDv7PvuxVoGBZwL7y3bXnW9 uNpM8/f6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJZOkyLNjOcMj2fVX00mWP DRfOfNJeMlfqxGWGBReLrkipbGFTO5pyep2Vp12zjYpfKgA= 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: crypto: qat - fix memory leak in RSA When an RSA key represented in form 2 (as defined in PKCS #1 V2.1) is used, some components of the private key persist even after the TFM is released. Replace the explicit calls to free the buffers in qat_rsa_exit_tfm() with a call to qat_rsa_clear_ctx() which frees all buffers referenced in the TFM context. The Linux kernel CVE team has assigned CVE-2022-49566 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 879f77e9071f029e1c9bd5a75814ecf51370f846 and fixed in 5.15.58 with commit a843925e0287eebb4aa808666bf22c664dfe4c53 Issue introduced in 4.8 with commit 879f77e9071f029e1c9bd5a75814ecf51370f846 and fixed in 5.18.15 with commit 0f967fdc09955221a1951a279481b0bf4d359941 Issue introduced in 4.8 with commit 879f77e9071f029e1c9bd5a75814ecf51370f846 and fixed in 5.19 with commit 80a52e1ee7757b742f96bfb0d58f0c14eb6583d0 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-49566 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: drivers/crypto/qat/qat_common/qat_asym_algs.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/a843925e0287eebb4aa808666bf22c664dfe4c53 https://git.kernel.org/stable/c/0f967fdc09955221a1951a279481b0bf4d359941 https://git.kernel.org/stable/c/80a52e1ee7757b742f96bfb0d58f0c14eb6583d0