hwrng: ks-sa - fix division by zero in ks_sa_rng_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b · < 55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hwrng: ks-sa - fix division by zero in ks_sa_rng_init
Fix division by zero in ks_sa_rng_init caused by missing clock pointer initialization. The clk_get_rate() call is performed on an uninitialized clk pointer, resulting in division by zero when calculating delay values.
Add clock initialization code before using the clock.
drivers/char/hw_random/ks-sa-rng.c | 7 +++++++ 1 file changed, 7 insertions(+)
From the CVE record · Linux
The Linux kernel's ks-sa hardware RNG initialization uses an uninitialized clock pointer to calculate delay values, causing a division by zero. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running Linux kernels with the ks-sa hardware RNG driver should check their versions; affected versions were not provided.