crypto: sun8i-ss - Remove crypto_rng interface
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ac2614d721dea2ff273af19c6c5d508d58a2bb3e · < 7c257a295e05ceb8f78aa3efecc4e9ce19c3313f| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's sun8i-ss crypto_rng driver has a use-after-free when a signal interrupts its DMA wait, and a buffer overread when copying a seed. The input does not establish how an attacker could trigger these bugs or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with sun8i-ss crypto_rng support should check their versions; affected versions are not specified.