Skip to contentSkip to conversation

CVE-2026-80871: crypto: xilinx-trng - Remove crypto_rng interface

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

crypto: xilinx-trng - Remove crypto_rng interface

Implementing the crypto_rng interface has no purpose, as it isn't used in practice. It's being removed from other drivers too. Just remove it. This leaves hwrng, which is actually used.

Tagging with 'Cc stable' due to the bugs that this removes:

- xtrng_trng_generate() sometimes returned success even when it didn't fill in all the bytes.

- It was possible for xtrng_trng_generate() and xtrng_hwrng_trng_read() to run concurrently and interfere with each other, as the locking code in xtrng_hwrng_trng_read() was broken.

The Linux kernel CVE team has assigned CVE-2026-80871 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit 8979744aca8096ee5072798dfc1181606919b35d and fixed in 6.18.40 with commit 83f29da85dc9d9a32fe62cd1055e8e6705e6bf80
	Issue introduced in 6.18 with commit 8979744aca8096ee5072798dfc1181606919b35d and fixed in 7.1.5 with commit 9634db561e1594c151923f4950c012161c545c93
	Issue introduced in 6.18 with commit 8979744aca8096ee5072798dfc1181606919b35d and fixed in 7.2 with commit 32b4d29280ed2a991dc196d5845b892acedc63b8

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-80871

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/Kconfig
drivers/crypto/xilinx/xilinx-trng.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/83f29da85dc9d9a32fe62cd1055e8e6705e6bf80
	https://git.kernel.org/stable/c/9634db561e1594c151923f4950c012161c545c93
	https://git.kernel.org/stable/c/32b4d29280ed2a991dc196d5845b892acedc63b8