7.8high
crypto: loongson - Remove broken and unused loongson-rng
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 766b2d724c8df071031412eea902b566a0049c31 before 037ec8353711c79353b12d5634e0c9ff363a9efa, from 766b2d724c8df071031412eea902b566a0049c31 before 43de8b9f01b7dd2f6ca5360c6bf2f203c02288dc, from 766b2d724c8df071031412eea902b566a0049c31 before af3d1bb9a09daf928fc3f173689fb7904d6a6d4f, 6.18 Not affected: before 6.18, from 6.18.39 up to 6.18.*, from 7.1.4 up to 7.1.*, from 7.2 up to * | CVE List |
| linux linux_kernel | from 6.18 before 6.18.39, from 6.19 before 7.1.4 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: crypto: loongson - Eliminar loongson-rng roto y sin usar El rng_alg loongson-rng tiene varias vulnerabilidades, incluyendo no proporcionar seguridad hacia adelante, y un error de uso después de liberación debido al uso de wait_for_completion_interruptible(). Mientras tanto, el framework rng_alg realmente no tiene ningún propósito en primer lugar aparte de acceder a los algoritmos de software crypto/drbg.c y crypto/jitterentropy.c. Los rng_algs específicos de hardware no tienen un usuario en el kernel, y a diferencia de hwrng no hay alimentación al RNG de Linux real. Como tal, realmente no tiene sentido este código. Hay, por supuesto, otros controladores rng_alg que están igualmente sin usar, pero están igualmente en proceso de ser eliminados gradualmente, p. ej. https://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org y https://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org Dado eso, no tiene sentido corregir hacia adelante estas vulnerabilidades, y tiene mucho más sentido simplemente revertir la adición de este controlador. Si esta plataforma proporciona funcionalidad TRNG (no PRNG), podría tener sentido añadir un controlador hwrng, pero sería bastante diferente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-64311 changed 2026-08-17 | CVE Terms of Use |
| NVD | CVE-2026-64311 changed 2026-10-24 | Public domain |