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 01CD736D9E0 for ; Sat, 25 Jul 2026 08:53:15 +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=1784969597; cv=none; b=ODBqtbT/gmLBWYCr55fKrG35D1sc4x4ZLWwUwQVjeGDDZaI2gJdli0PE3r8Uoh3rs8pIVC2to3BtYDw5diEEqpEQPAiKNYDFSJRdj7puvtjL2Z2gF7q+rYCvIJ1LeLun3gm8TFEGw+2PfS4ovPhHP759Q0s1+d2/NGIxWi1bSxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969597; c=relaxed/simple; bh=kfSl9VFBxVbqPzgyRfQsVknO8m4r+fIZoGcR7vcNTxM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=asxjvrAiLu2MDprr0H3DJzbeMkIBKZ0TlhjXRIMVAINYlUOlPcLtks3FPvUp5dqCAZqmjb5EbdmhID3sqvGMxuG2sRGYmDK4fpedEPl/gUUGVhWkTepv/sS+QQlAMYXi++4jifLWKEd4z+UsHzQOqqy5W/HGHv/qZ3aznEVmeWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jOZysxho; 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="jOZysxho" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2234F1F000E9; Sat, 25 Jul 2026 08:53:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969595; bh=RmgzEYqJIbir+8bSJsSX1nSKDHRSAILYFy5rVNCRIpQ=; h=From:To:Cc:Subject:Date:Reply-To; b=jOZysxho5T9APSx4GRSQ7p/W1xK4ALztTULpZ3WbMri3Ct57BS//lvCBUJII5Ex6M mEaBrogtz08a1LBkacx0YDj9Q3anRrraUFvW2XJeeaVNgMvvazRIjhW0YXoYb5WDIM BjjTsasCcKXLc7wx1NCvB7KyfhohWSTlBRmOTAro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64311: crypto: loongson - Remove broken and unused loongson-rng Date: Sat, 25 Jul 2026 10:48:48 +0200 Message-ID: <2026072509-CVE-2026-64311-f537@gregkh> X-Mailer: git-send-email 2.55.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=3317; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0bFBiNwER+Yd+Jq/kqa6KT49NVyfzFE5B+/P0Y6gzEo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFZ5RAjoNy//faq49b6eys/GQ/Opt3QvrVt/vE5mx7 mzdzVP7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi75cyzPf8bxvQs9DXYuKx tDn7PnRNm3Vy2VmGWcxHed93SbzfdC9jbvxsJn3BJ/I8VwA= 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: loongson - Remove broken and unused loongson-rng The loongson-rng rng_alg has several vulnerabilities, including not providing forward security, and a use-after-free bug due to the use of wait_for_completion_interruptible(). Meanwhile, the rng_alg framework doesn't really have any purpose in the first place other than to access the software algorithms crypto/drbg.c and crypto/jitterentropy.c. Hardware-specific rng_algs have no in-kernel user, and unlike hwrng there's no feed into the actual Linux RNG. As such, there's really no point to this code. There are of course other rng_alg drivers that are similarly unused, but they're similarly in the process of being phased out, e.g. https://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org and https://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org Given that, there's no point in fixing forward these vulnerabilities, and it makes much more sense to simply roll back the addition of this driver. If this platform provides TRNG (not PRNG) functionality, it could make sense to add a hwrng driver, but it would be quite different. The Linux kernel CVE team has assigned CVE-2026-64311 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 766b2d724c8df071031412eea902b566a0049c31 and fixed in 6.18.39 with commit 037ec8353711c79353b12d5634e0c9ff363a9efa Issue introduced in 6.18 with commit 766b2d724c8df071031412eea902b566a0049c31 and fixed in 7.1.4 with commit 43de8b9f01b7dd2f6ca5360c6bf2f203c02288dc Issue introduced in 6.18 with commit 766b2d724c8df071031412eea902b566a0049c31 and fixed in 7.2-rc1 with commit af3d1bb9a09daf928fc3f173689fb7904d6a6d4f 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-64311 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: MAINTAINERS arch/loongarch/configs/loongson32_defconfig arch/loongarch/configs/loongson64_defconfig drivers/crypto/Kconfig drivers/crypto/Makefile drivers/crypto/loongson/Kconfig drivers/crypto/loongson/Makefile drivers/crypto/loongson/loongson-rng.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/037ec8353711c79353b12d5634e0c9ff363a9efa https://git.kernel.org/stable/c/43de8b9f01b7dd2f6ca5360c6bf2f203c02288dc https://git.kernel.org/stable/c/af3d1bb9a09daf928fc3f173689fb7904d6a6d4f