Bug 2414472 (CVE-2025-40127) - CVE-2025-40127 kernel: hwrng: ks-sa - fix division by zero in ks_sa_rng_init
Summary: CVE-2025-40127 kernel: hwrng: ks-sa - fix division by zero in ks_sa_rng_init
Keywords:
Status: NEW
Alias: CVE-2025-40127
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-11-12 11:01 UTC by OSIDB Bzimport
Modified: 2026-01-06 10:02 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-11-12 11:01:55 UTC
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(+)


Note You need to log in before you can comment on or make changes to this bug.