Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7D96A39A060 for ; Fri, 26 Jun 2026 19:42:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502967; cv=none; b=jAWUVnnEaEIM0L9ncHo0GrhS10da6U1DVpXUJ5OpiQrAsGGQs/5oqJVu+8kmEEP4ffos1qDmb8ziwgIS0D/eIqUUTEbgCeeD32nBolWEP+5XafgnxhuDjy3p+bFNv8ZCWJkZQgTYWk8icp86hhR6nhpU5mbd1A/hKCzMNifuSrg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782502967; c=relaxed/simple; bh=AUxkkYqNb/RelFtTz+XyLvn2YlCrEfpSBa8kEzQ/8kY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PPtmaz9lW7LuvdezMW9s2J1TGc23sxLF8FlhbUQ0vlQChgwtUcNhIT3XMLe3bHzniwi5GX5LKtC4I/MgbhE32COzS4UoUtRqQEetEESZ32jCZKhBJ2SloUq+AMGLdAmHSTX+Wrn/CDXMTqofOKDVP7eJXqvUprkDZEJ8Pkgumdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QrkLFMFx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QrkLFMFx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B8F01F000E9; Fri, 26 Jun 2026 19:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782502966; bh=od5lLdzfkvzwyXKbuy2wrdb5sAeRVn98ZapiKRfOERQ=; h=From:To:Cc:Subject:Date:Reply-To; b=QrkLFMFxm18sSv2lenof3I5amTIgeQsiJlZ+nNqXoaoI+Xoxawwup4t1I/tQvA3iM xBb/8hiVtj3brn2OcOSy4fY9L8ve3xNpsCaWz+g+y3Vt16JbPlBQil2vc2hkWArccZ qRH63ioXORcZElJjK77w/1/YfpP7ycvtta11CGs4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53302: crypto: eip93 - fix hmac setkey algo selection Date: Fri, 26 Jun 2026 20:40:35 +0100 Message-ID: <2026062619-CVE-2026-53302-a5fb@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4721; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bFvyHjz8tgX1DPxtcuTD/XYRoGRZPjXuciidd/ba8mg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2Vxffvz4l/K4oc4PKu2snO30UVd4t+JcmVjLD2enqS yaB6ovXOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiR7QYFpz1eDbVPHHd1Ssi YmbKnXfC1edu28WwYPZhdttX3NLSpmV/igIuaOpK3NdhAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: eip93 - fix hmac setkey algo selection eip93_hmac_setkey() allocates a temporary ahash transform for computing HMAC ipad/opad key material. The allocation uses the driver-specific cra_driver_name (e.g. "sha256-eip93") but passes CRYPTO_ALG_ASYNC as the mask, which excludes async algorithms. Since the EIP93 hash algorithms are the only ones registered under those driver names and they are inherently async, the lookup is self-contradictory and always fails with -ENOENT. When called from the AEAD setkey path, this failure leaves the SA record partially initialized with zeroed digest fields. A subsequent crypto operation then dereferences a NULL pointer in the request context, resulting in a kernel panic: ``` pc : eip93_aead_handle_result+0xc8c/0x1240 [crypto_hw_eip93] lr : eip93_aead_handle_result+0xbec/0x1240 [crypto_hw_eip93] sp : ffffffc082feb820 x29: ffffffc082feb820 x28: ffffff8011043980 x27: 0000000000000000 x26: 0000000000000000 x25: ffffffc078da0bc8 x24: 0000000091043980 x23: ffffff8004d59e50 x22: ffffff8004d59410 x21: ffffff8004d593c0 x20: ffffff8004d593c0 x19: ffffff8004d4f300 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000007fda7aa498 x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: fffffffff8127a80 x9 : 0000000000000000 x8 : ffffff8004d4f380 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000008 x3 : 0000000000000009 x2 : 0000000000000008 x1 : 0000000028000003 x0 : ffffff8004d388c0 Code: 910142b6 f94012e0 f9002aa0 f90006d3 (f9400740) ``` The reported symbol eip93_aead_handle_result+0xc8c is a resolution artifact from static functions being merged under the nearest exported symbol. Decoding the faulting sequence: ``` 910142b6 ADD X22, X21, #0x50 f94012e0 LDR X0, [X23, #0x20] f9002aa0 STR X0, [X21, #0x50] f90006d3 STR X19, [X22, #0x8] f9400740 LDR X0, [X26, #0x8] ``` The faulting LDR at [X26, #0x8] is loading ctx->flags (offset 8 in eip93_hash_ctx), where ctx has been resolved to NULL from a partially initialized or unreachable transform context following the failed setkey. Fix this by dropping the CRYPTO_ALG_ASYNC mask from the crypto_alloc_ahash() call. The code already handles async completion correctly via crypto_wait_req(), so there is no requirement to restrict the lookup to synchronous algorithms. Note that hashing a single 64-byte block through the hardware is likely slower than doing it in software due to the DMA round-trip overhead, but offloading it may still spare CPU cycles on the slower embedded cores where this IP is found. [Detailed investigation report of this bug] The Linux kernel CVE team has assigned CVE-2026-53302 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 9739f5f93b7806a684713ba42e6ed2d1df7c8100 and fixed in 6.18.33 with commit fc9310d79fdb117b369a01eb00f4fd5fb4849d4e Issue introduced in 6.15 with commit 9739f5f93b7806a684713ba42e6ed2d1df7c8100 and fixed in 7.0.10 with commit ec226d3e58bb9f0e26a77346085b6b4d594d53d8 Issue introduced in 6.15 with commit 9739f5f93b7806a684713ba42e6ed2d1df7c8100 and fixed in 7.1 with commit 3ba3b02f897b14e34977e1886d95ffe64d907204 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-2026-53302 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/inside-secure/eip93/eip93-common.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/fc9310d79fdb117b369a01eb00f4fd5fb4849d4e https://git.kernel.org/stable/c/ec226d3e58bb9f0e26a77346085b6b4d594d53d8 https://git.kernel.org/stable/c/3ba3b02f897b14e34977e1886d95ffe64d907204