From mboxrd@z Thu Jan 1 00:00:00 1970 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 6672A14D422 for ; Wed, 19 Jun 2024 13:38:52 +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=1718804332; cv=none; b=nPYRuWg15GgrZcZ2XcqFC2ZEzB9IoKosXcbUfSQdQ0VpoAHubSAlqUWBC3qjdzDlap8rRwW2vmbomlty4oUuHvKPxJ+WeR44sSzCHoTc22IQUi+OHhblu2AHWj7mbVSJot0Au95b8K/CLEVrUNZaMrZ5cKmQDSZt0kueKe9DCCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804332; c=relaxed/simple; bh=5ncS3n2vmQ5tgBut7kMz2L/ZhPaPK+zSbNjwlD3nVuM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sI+nhcVCHF9cmV5qRn8WDwlJ+jRpnwq34UdJ/4EnRANpCA4Nnu2xmKQmcRK12pjqzorgABzBR7OIbToNGycEBkMaiit8TazkBohGAViSWbjT5cLLHP6nnYxJaNbP9M2QCbtf1Vlhxo1iUQP6xR4ooZRr9urritEEh5lXEdhcqzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gpDHc/5M; 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="gpDHc/5M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BE20C2BBFC; Wed, 19 Jun 2024 13:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804331; bh=5ncS3n2vmQ5tgBut7kMz2L/ZhPaPK+zSbNjwlD3nVuM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gpDHc/5M+Wqk7HasH1QCh8+YPAVUX64eBkwDNZqoO/GJ/AdHBlV2QBqzZZQlFAgIv EsjTfhJJEqu9TjAL6frarHf+TbRZEKQ+8kaJc1tBKtMHgM0/e2VrFrd75vIR8mtP88 pGW+/c7a3DKHweCuHIUe27E1eZWfsklRNpfcERfg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38579: crypto: bcm - Fix pointer arithmetic Date: Wed, 19 Jun 2024 15:37:51 +0200 Message-ID: <2024061947-CVE-2024-38579-e96a@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=3112; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5ncS3n2vmQ5tgBut7kMz2L/ZhPaPK+zSbNjwlD3nVuM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF97XPPldiE9azLrhw6+2n/3OL/0Zblv2YtozTJOfv+ 8L9Ws6uHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRjTIM85OYPxzM6FzNIPY5 /YzXtL79ne4sOgwLmpT0Qr5Vyl7vPKknaPTsXFOazrntAA== 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: bcm - Fix pointer arithmetic In spu2_dump_omd() value of ptr is increased by ciph_key_len instead of hash_iv_len which could lead to going beyond the buffer boundaries. Fix this bug by changing ciph_key_len to hash_iv_len. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-38579 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 4.19.316 with commit c256b616067b Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 5.4.278 with commit e719c8991c16 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 5.10.219 with commit ebed0d666fa7 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 5.15.161 with commit c69a1e4b419c Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 6.1.93 with commit 49833a8da640 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 6.6.33 with commit d0f14ae223c2 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 6.8.12 with commit c0082ee42063 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 6.9.3 with commit 3b7a40740f04 Issue introduced in 4.11 with commit 9d12ba86f818 and fixed in 6.10-rc1 with commit 2b3460cbf454 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-38579 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/bcm/spu2.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/c256b616067bfd6d274c679c06986b78d2402434 https://git.kernel.org/stable/c/e719c8991c161977a67197775067ab456b518c7b https://git.kernel.org/stable/c/ebed0d666fa709bae9e8cafa8ec6e7ebd1d318c6 https://git.kernel.org/stable/c/c69a1e4b419c2c466dd8c5602bdebadc353973dd https://git.kernel.org/stable/c/49833a8da6407e7e9b532cc4054fdbcaf78f5fdd https://git.kernel.org/stable/c/d0f14ae223c2421b334c1f1a9e48f1e809aee3a0 https://git.kernel.org/stable/c/c0082ee420639a97e40cae66778b02b341b005e5 https://git.kernel.org/stable/c/3b7a40740f04e2f27114dfd6225c5e721dda9d57 https://git.kernel.org/stable/c/2b3460cbf454c6b03d7429e9ffc4fe09322eb1a9