CVE-2025-40127
JSON

Not scored

hwrng: ks-sa - fix division by zero in ks_sa_rng_init

Severity
Not scored
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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(+)

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before 692a04a1e0cde1d80a33df0078c755cf02cd7268, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before d76b099011fa056950f63d05ebb6160991242f6a, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before eec7e0e19c1fa75dc65e25aa6a21ef24a03849af, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before f4238064379a91e71a9c258996acac43c50c2094, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before 2b6bcce32cb5aff84588a844a4d3f6dd5353b8e2, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before 55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2, from 6d01d8511dceb9cd40f72eb102b7d24f0b2e997b before 612b1dfeb414dfa780a6316014ceddf9a74ff5c0, 5.5
Not affected: before 5.5, from 5.10.246 up to 5.10.*, from 5.15.195 up to 5.15.*, from 6.1.156 up to 6.1.*, from 6.6.112 up to 6.6.*, from 6.12.53 up to 6.12.*
CVE List

What each source says

CVE List

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(+)

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: hwrng: ks-sa - soluciona la división por cero en ks_sa_rng_init Corrige la división por cero en ks_sa_rng_init causada por la falta de inicialización del puntero del reloj. La llamada a clk_get_rate() se realiza sobre un puntero clk no inicializado, resultando en una división por cero al calcular los valores de retardo. Añade código de inicialización del reloj antes de usar el reloj. drivers/char/hw_random/ks-sa-rng.c | 7 +++++++ 1 archivo modificado, 7 inserciones(+)

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40127 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-40127 changed 2026-10-19Public domain