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 5D4A514C581 for ; Wed, 19 Jun 2024 13:48:46 +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=1718804927; cv=none; b=ZFToEAC9WvCr6dF4aiqyEm+TUpi98L4ju3bbfhrHZHBCZGigeMm//dkizl2hvYI8FRYpWI7n0trAr+zFs91pYfrJdPRbJ1GE0WXiqdICllUCxlpZMSwzExfhzi06ZASd+X/rXVFiYMQmc4DzWn7NXkl9EgMn1EATZb7I0X7XJZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804927; c=relaxed/simple; bh=msJd3J0rZa0yx9+zhN5/RgUn5sgIPGcz9ri7eQxV944=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qPCNH3zQK7RWXhAfKiT7Q/seZOfpCihn68alZIeMnk2Fs4ttQBfCGUC72zLZPukW80eBs9gOOBX4oJ7W5EgQ4KF5iLFNkwaSSMD0oZ4g7pilGMTOjDzBhQaOQfH638zaaR9PstidSOzvUnIr80TsPbSHFsAC4LaiE7RXykk92vU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XSDnBp8h; 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="XSDnBp8h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87930C32781; Wed, 19 Jun 2024 13:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804925; bh=msJd3J0rZa0yx9+zhN5/RgUn5sgIPGcz9ri7eQxV944=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XSDnBp8holScevB1aIpGZ+gWqI8DQkDwQX6awSj7NRED/NQUqCEGa6mxw4TYOWaKG uYIwJgfKw3cwNUxbPiq/Z8DDUGxO0Qa++0y6W//sX4aa8DlY4olbaAzPZCFQTsIHlT c/Fp3Yptc2rmMv2D3cDk9Thr6iIzwNi8uSzYEGaM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38606: crypto: qat - validate slices count returned by FW Date: Wed, 19 Jun 2024 15:48:29 +0200 Message-ID: <2024061925-CVE-2024-38606-6148@gregkh> X-Mailer: git-send-email 2.45.2 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=2757; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=msJd3J0rZa0yx9+zhN5/RgUn5sgIPGcz9ri7eQxV944=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFD1d+Nr+4PiTiuMrznDOXWUWv1/SXL9pU9vac7NnNJ Ulda35s74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ/IhmWHBh6ZPt679tCy+1 fLJpw9wPZv8n8TximF/Me/20a9lpqXnXnSQSTE/8e/Zq5XkA 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 - validate slices count returned by FW The function adf_send_admin_tl_start() enables the telemetry (TL) feature on a QAT device by sending the ICP_QAT_FW_TL_START message to the firmware. This triggers the FW to start writing TL data to a DMA buffer in memory and returns an array containing the number of accelerators of each type (slices) supported by this HW. The pointer to this array is stored in the adf_tl_hw_data data structure called slice_cnt. The array slice_cnt is then used in the function tl_print_dev_data() to report in debugfs only statistics about the supported accelerators. An incorrect value of the elements in slice_cnt might lead to an out of bounds memory read. At the moment, there isn't an implementation of FW that returns a wrong value, but for robustness validate the slice count array returned by FW. The Linux kernel CVE team has assigned CVE-2024-38606 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 69e7649f7cc2 and fixed in 6.8.12 with commit e57ed345e2e6 Issue introduced in 6.8 with commit 69e7649f7cc2 and fixed in 6.9.3 with commit 9b284b915e2a Issue introduced in 6.8 with commit 69e7649f7cc2 and fixed in 6.10-rc1 with commit 483fd65ce293 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-2024-38606 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/intel/qat/qat_common/adf_gen4_tl.c drivers/crypto/intel/qat/qat_common/adf_telemetry.c drivers/crypto/intel/qat/qat_common/adf_telemetry.h 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/e57ed345e2e6043629fc74aa5be051415dcc4f77 https://git.kernel.org/stable/c/9b284b915e2a5e63ca133353f8c456eff4446f82 https://git.kernel.org/stable/c/483fd65ce29317044d1d00757e3fd23503b6b04c