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 6A4E93FCB09 for ; Wed, 27 May 2026 12:26:59 +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=1779884820; cv=none; b=YInEKBAij0W9yBQtQho1Keqnqie8/Ie1kPW3sUvl8v7mvQZDBeC3kZxnn9I7KR1/QQYxdr2F3o0rO4RSAqgqxyNZDzxwoBm47sJNBwBGe0j9bEv0Uibo+1m9+3n6xIceqMTldMW5ERpCZ1z/H8Pczl/5/iP6w8nIzoKfp71zH30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884820; c=relaxed/simple; bh=Vq78ZsAj3OyTQaowTqbXtxlxTSo3PuHAWxQQ+5s1aAM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DZYpYo+nUbcOFaBF+qAwE/h4V1jK7jgyF0VYLGY8O3L6fV02KDNV14htBDrNEUFGgkx1i0lpwkNl8a8WAfdowBur9gbzDIeSKK53nPAYM8tSogyYXN6wCbH965kTUott77WM//CBXnT586L4mko7dJ5jzFY0kR+WmMy0Pkt0dSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bTfwxqrG; 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="bTfwxqrG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9D5B1F000E9; Wed, 27 May 2026 12:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884819; bh=WUbP2vVapwB3lrLyXjLXYgTKMxGjfiklSryyR8v8cIc=; h=From:To:Cc:Subject:Date:Reply-To; b=bTfwxqrGysOzvYG02fLIkXRb1okp1AdS2zklJCschRYBMgTA4qD1lpvCXQBQU8bHU 2Urov+21NYecBWBRDfbPKGXLAjocZZJMsULnIigTisOkVJHo7K18PWlxU/imWQyOSk VNKNgC6HnQjpnqwrfFZz5j4id6SapcBZUvB9l/i8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45950: crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req() Date: Wed, 27 May 2026 14:19:52 +0200 Message-ID: <2026052731-CVE-2026-45950-f8f7@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=2697; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MHRTD+XAPKWmPEv9uNlOw0vYfmGU1W5cvvDQCvwnycM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD8XXy6gYR0gmv85ntJatO7FT/35o1eyo7QkckmbKr nGz+Kd0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERqTjLMr4k8JpzaUe78+7vG G757N1cL9tofY1hwk31Vn1zwhBsZdteXTS+U9+irKLAGAA== 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: starfive - Fix memory leak in starfive_aes_aead_do_one_req() The starfive_aes_aead_do_one_req() function allocates rctx->adata with kzalloc() but fails to free it if sg_copy_to_buffer() or starfive_aes_hw_init() fails, which lead to memory leaks. Since rctx->adata is unconditionally freed after the write_adata operations, ensure consistent cleanup by freeing the allocation in these earlier error paths as well. Compile tested only. Issue found using a prototype static analysis tool and code review. The Linux kernel CVE team has assigned CVE-2026-45950 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 7467147ef9bf42d1ea5b3314c7a05cd542b3518e and fixed in 6.12.75 with commit 38d80307decc1132626a30e2a62af734630ecca5 Issue introduced in 6.10 with commit 7467147ef9bf42d1ea5b3314c7a05cd542b3518e and fixed in 6.18.14 with commit 4869d0e4e48a5301b267d359b2561c4080791a55 Issue introduced in 6.10 with commit 7467147ef9bf42d1ea5b3314c7a05cd542b3518e and fixed in 6.19.4 with commit 5f2c964a058581e1557c32d5de651c67a80438a7 Issue introduced in 6.10 with commit 7467147ef9bf42d1ea5b3314c7a05cd542b3518e and fixed in 7.0 with commit ccb679fdae2e62ed92fd9acb25ed809c0226fcc6 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-45950 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/starfive/jh7110-aes.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/38d80307decc1132626a30e2a62af734630ecca5 https://git.kernel.org/stable/c/4869d0e4e48a5301b267d359b2561c4080791a55 https://git.kernel.org/stable/c/5f2c964a058581e1557c32d5de651c67a80438a7 https://git.kernel.org/stable/c/ccb679fdae2e62ed92fd9acb25ed809c0226fcc6