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 172D378F5D for ; Sat, 28 Dec 2024 09:47:21 +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=1735379241; cv=none; b=tk0zH0kusj/KtmB9Z8kNY92umjPs+5Uwy344QXMpuU4e2HQ+Rgxb9gq9yKBAu70UoG0IeGbDK3O5O4VifXCcgrO2aGprYIkB7zAoYl8z6wE07x2ZFhfdSi+ONh/kGAiOCffwjATQd/pvDoG6jBo++FJAeB1djCoh6NT7fqnG5zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735379241; c=relaxed/simple; bh=a1lKBhtcMEyyMz0MbaD7b90rKaf8quviFVD16GKdeVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CqTWkyyx9qW62xMf3/fxrExr6DQHRs8ZuTTUeqlFs0P2m96as138TrqMq8LTjSx9AviDA/bMABJT1X1juHKpqVLd93qgsiHCeckcKxmVp4lFUNRuwylgoyF6g25MIUwOsyNrHcIkBi703EKqRAEw3RDXVHO0dubjNKhB/5l1W+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1mIfU1xF; 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="1mIfU1xF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F42BC4CECD; Sat, 28 Dec 2024 09:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735379241; bh=a1lKBhtcMEyyMz0MbaD7b90rKaf8quviFVD16GKdeVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1mIfU1xFXToUlHcvhk/ysWw2fHwHdk/FvPZIyVPt2Wh1mCHkYwHCifhp+xYZHKhel mTBVzz1cD5lxjuwMQPx8SpOkk3SE2gX8/Ch0WbEdf1tm2isPZkYorgCQsn5e/MbbIa 464B2RRA4IdzQbsQ7A9gPUe3VEPojX1PlAqMKwGA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56681: crypto: bcm - add error check in the ahash_hmac_init function Date: Sat, 28 Dec 2024 10:45:33 +0100 Message-ID: <2024122832-CVE-2024-56681-d0c0@gregkh> X-Mailer: git-send-email 2.47.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=3577; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a1lKBhtcMEyyMz0MbaD7b90rKaf8quviFVD16GKdeVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn5J/Y8i99c+i6uuH3yz+Bv16ev2mZ691VI0syo5jgj/ xNrO5eadMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEyhIY5sq9Lj3ycvq5O5Hl V5qDn21Lu6W8/R7DfD+XP/9SWBx5ClT5jvgvXDp1P2/ibgA= 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 - add error check in the ahash_hmac_init function The ahash_init functions may return fails. The ahash_hmac_init should not return ok when ahash_init returns error. For an example, ahash_init will return -ENOMEM when allocation memory is error. The Linux kernel CVE team has assigned CVE-2024-56681 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 4.19.325 with commit 8f1a9a960b1107bd0e0ec3736055f5ed0e717edf Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 5.4.287 with commit 75e1e38e5d80d6d9011b7322698ffba3dd3db30a Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 5.10.231 with commit 28f8ffa945f7d7150463e15097ea73b19529d6f5 Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 5.15.174 with commit 4ea3e3b761e371102bb1486778e2f8dbc9e37413 Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 6.1.120 with commit 05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 6.6.64 with commit ae5253313e0ea5f00c06176074592b7f493c8546 Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 6.11.11 with commit ee36db8e8203420e6d5c42eb9428920c2fc36532 Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 6.12.2 with commit bba9e38c5ad41d0a88b22a59e5b6dd3e31825118 Issue introduced in 4.11 with commit 9d12ba86f818aa9cfe9f01b750336aa441f2ffa2 and fixed in 6.13-rc1 with commit 19630cf57233e845b6ac57c9c969a4888925467b 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-56681 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/cipher.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/8f1a9a960b1107bd0e0ec3736055f5ed0e717edf https://git.kernel.org/stable/c/75e1e38e5d80d6d9011b7322698ffba3dd3db30a https://git.kernel.org/stable/c/28f8ffa945f7d7150463e15097ea73b19529d6f5 https://git.kernel.org/stable/c/4ea3e3b761e371102bb1486778e2f8dbc9e37413 https://git.kernel.org/stable/c/05f0a3f5477ecaa1cf46448504afe9e7c2e96fcc https://git.kernel.org/stable/c/ae5253313e0ea5f00c06176074592b7f493c8546 https://git.kernel.org/stable/c/ee36db8e8203420e6d5c42eb9428920c2fc36532 https://git.kernel.org/stable/c/bba9e38c5ad41d0a88b22a59e5b6dd3e31825118 https://git.kernel.org/stable/c/19630cf57233e845b6ac57c9c969a4888925467b