CVE-2026-74438: crypto: sun4i-ss - Remove insecure and unused rng_alg
In the Linux kernel, the following vulnerability has been resolved:
crypto: sun4i-ss - Remove insecure and unused rngalg
Remove sun4issrng, as it is insecure and unused:
- It has multiple vulnerabilities. sun4issprngseed() is missing locking and has a buffer overflow. sun4issprnggenerate() fails to fill the entire buffer with cryptographic random bytes, because it rounds the destination length down and also doesn't actually wait for the hardware to be ready before pulling bytes from it.
- No user of this code is known. It's usable only theoretically via the "rng" algorithm type of AFALG. But userspace actually just uses the actual Linux RNG (/dev/random etc) instead. And rngalgs don't contribute entropy to the actual Linux RNG either. (This may have been confused with hwrng, which does contribute entropy.)
The sun4issprngseed() buffer overflow was reported by Tianchu Chen and discovered by Atuin - Automated Vulnerability Discovery Engine
There's no point in fixing all these vulnerabilities individually when this is unused code, so let's just remove it.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
sun4i_ss_rngfrom your environment.Remove sun4i_ss_rng (crypto: sun4i-ss - Remove insecure and unused rng_alg). This code is described as insecure and unused; the sun4i_ss_prng_seed() buffer overflow is associated with it.