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 0BCF4256D for ; Wed, 26 Feb 2025 02:23:51 +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=1740536632; cv=none; b=dz2fUUhRQbMPsDsaL/IygKdefQxWF1S3ITly14jBqedddQmcfBJwTii6VcVBxQAxhQw2JspEleLJEK4xL8JlaCm/WUmOs23SLM+UpU5lHM31fJl/s3WUB+bArKag24MRNmHhL3S88vVQwLN+v/kTVgvIbBcw4WQXXGDjt5pIVx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536632; c=relaxed/simple; bh=HNWaBNeATJHaXykv/Jn1KF8i3T99SbVDnl57xV/MkhI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ufqf7zH9eES+pBfgw9RKp0Gg/eUU6XdoxrlgGvOgX7+SUmRjWnpDUd5bQZX0ykhMvL1NBEeM5Rb9SEBvfLhkECExI6eO69s37ph+LUkZh0RwByt6AWW988bhrd2Q69u4U06bnH50b8z2ORYujVBGqE3wWwE2/DsujsSwYQKdJxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z+/hm1S5; 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="Z+/hm1S5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4205DC4CEDD; Wed, 26 Feb 2025 02:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536631; bh=HNWaBNeATJHaXykv/Jn1KF8i3T99SbVDnl57xV/MkhI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z+/hm1S5RffHMCNhbrui1YG6FRoIHKeDGGLWNXszjUiP2WEOOUYXcBPrweVPRY7gT 7Hw9hOz/uaWiTJz5NlneeEVb65e55UFIsbVFxC85XZTP2N11iygSJNt/Ox0grJ0XGv SmJhRZLQwjarfpF3fmtzoBjs0pJmvn+kAwec6yHs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49564: crypto: qat - add param check for DH Date: Wed, 26 Feb 2025 03:22:07 +0100 Message-ID: <2025022605-CVE-2022-49564-0645@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=1952; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HNWaBNeATJHaXykv/Jn1KF8i3T99SbVDnl57xV/MkhI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qs62nPZc6LYnOIp9bYV3PM/EVWkeRy94L3rBERuyO oXrwjKtjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI+16GubK7vj5KM5P/35i1 SK7v2xJ1P+vySQzzjHLEjmw+UJpw5Y5A1lw9hqsuL51vAwA= 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 - add param check for DH Reject requests with a source buffer that is bigger than the size of the key. This is to prevent a possible integer underflow that might happen when copying the source scatterlist into a linear buffer. The Linux kernel CVE team has assigned CVE-2022-49564 to this issue. Affected and fixed versions =========================== Fixed in 5.15.58 with commit e7f979ed51f96495328157df663c835b17db1e30 Fixed in 5.18.15 with commit 76c9216833e7c20a67c987cf89719a3f01666aaa Fixed in 5.19 with commit 2acbb8771f6ac82422886e63832ee7a0f4b1635b 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-49564 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/e7f979ed51f96495328157df663c835b17db1e30 https://git.kernel.org/stable/c/76c9216833e7c20a67c987cf89719a3f01666aaa https://git.kernel.org/stable/c/2acbb8771f6ac82422886e63832ee7a0f4b1635b