1. Home
  2. Vulnerabilities
  3. CVE-2025-40127

CVE-2025-40127

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

Published 12 Nov 2025 · modified 19 Oct 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 13/100

Summary

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 products and versions

Linux (1 line(s))
Linux
ProductVersionsFixed inSource
Linux 5.5 — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)

How this data is obtained and calculated