In the Linux kernel, the following vulnerability has been resolved: crypto: sun8i-ss - Remove crypto_rng interface Since the crypto_rng interface for hardware PRNGs is unused and is redundant with hwrng and the actual Linux RNG, it's being phased out. Most drivers for it were already removed. Go ahead and remove the sun8i-ss support which is one of the only remaining ones. As usual for crypto_rng, this driver was also buggy: its ->generate() function had a use-after-free vulnerability due to using wait_for_completion_interruptible_timeout() without handling shutting down the DMA operation if a signal is sent. Also, it had a buffer overread bug in the line 'memcpy(ctx->seed, d + dlen, ctx->slen);'. There's no point in fixing these bugs separately only to remove the code anyway, so this commit is marked with Fixes and Cc stable.
https://git.kernel.org/stable/c/d29ccf9eeb67d775221e49a079caa1af83427afa
https://git.kernel.org/stable/c/a78446ee6fae86ac8733f120e3ffce2e5d9384f5
https://git.kernel.org/stable/c/a41e4ba94ad4571aa2e566baa395e6e871e0fd4f
https://git.kernel.org/stable/c/9127d2a88c1795ddc4ba7687fea01cab1908fae1
https://git.kernel.org/stable/c/8ab58786b4c63b8f1b6c522f33bb67a3c8c2791f
https://git.kernel.org/stable/c/7c257a295e05ceb8f78aa3efecc4e9ce19c3313f
https://git.kernel.org/stable/c/64f3406ad082c00fb7a80240a24943ccb6d9a538
https://git.kernel.org/stable/c/6117968fe2cdcde28ac3aa6ec814485320af4049