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 3CEB544375 for ; Wed, 1 May 2024 05:22:20 +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=1714540941; cv=none; b=NgB2Vkks+7wNC1/7LOAR34JYQSiCSdButrsfIStfEMS9dt5U7e/YoDGxh3qsvXHb47/lAo7JwecD2YxmravO0sxRlw27d4t7KRU145GTIzzgjbofJnVGBOOj21ItWavOdIe3PA+rZkdlkJuMaV0956kkX0rh0viKPhtDKM8/gSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540941; c=relaxed/simple; bh=RiXXeJ63m8LXHbyZBFZXe/H5smrgFjqhLhqtB2EcFvQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=huMxXRd55+nQDrFuWn5kX4CMh4w1o/jummS1yNW/gLFmqYfiyyZhiLXQqj7B+ObO+aM0tev3ExjEXMkLv6n6yBOfGfq3THCO0c4jSCo2VD5DSwOtLmynCCHRXOle56+ZxJ9s6k0RZqK41Bd5msEdYaQE85I5nK2MwYxdi1MZq5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=egwGiPRl; 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="egwGiPRl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CAFCC113CC; Wed, 1 May 2024 05:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540940; bh=RiXXeJ63m8LXHbyZBFZXe/H5smrgFjqhLhqtB2EcFvQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=egwGiPRljNk7900pZ+CnJkC8JjuVPMN0qyfC8IRQZkex58NTZxgzUT/Cm7yxRW4pJ 7ntfsPEUubEaHxkbYDl1VK6IIttXb4xGowiXknWO596/Wdr7r59L4SRBAWmFKYA2bg 8rGnf+1m3SOtZzuFkVDa+DgzTC6Gbv0ie8RVhWjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26945: crypto: iaa - Fix nr_cpus < nr_iaa case Date: Wed, 1 May 2024 07:21:35 +0200 Message-ID: <2024050126-CVE-2024-26945-bf47@gregkh> X-Mailer: git-send-email 2.44.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=1809; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RiXXeJ63m8LXHbyZBFZXe/H5smrgFjqhLhqtB2EcFvQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF8M0zcQ91uy4v7JNq+LUlkXC1e5Za+UPdK+U1+BV1 0gWMbrWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5L8cwz6bUZc50t7fBv82c Ih1O2Mh5H/vAzrCg+VmRZtvfyIPXlaMW/2XT2TJ9xrtfAA== 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: iaa - Fix nr_cpus < nr_iaa case If nr_cpus < nr_iaa, the calculated cpus_per_iaa will be 0, which causes a divide-by-0 in rebalance_wq_table(). Make sure cpus_per_iaa is 1 in that case, and also in the nr_iaa == 0 case, even though cpus_per_iaa is never used if nr_iaa == 0, for paranoia. The Linux kernel CVE team has assigned CVE-2024-26945 to this issue. Affected and fixed versions =========================== Fixed in 6.8.3 with commit a5ca1be7f981 Fixed in 6.9-rc2 with commit 5a7e89d3315d 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-26945 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/iaa/iaa_crypto_main.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/a5ca1be7f9817de4e93085778b3ee2219bdc2664 https://git.kernel.org/stable/c/5a7e89d3315d1be86aff8a8bf849023cda6547f7