CVE-2025-40127
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-12

Last updated on: 2025-11-12

Assigner: kernel.org

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(+)
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-12
Last Modified
2025-11-12
Generated
2026-06-16
AI Q&A
2025-11-13
EPSS Evaluated
2026-06-14
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a division by zero error in the Linux kernel's hardware random number generator driver (ks-sa). It occurs because a clock pointer was not initialized before calling clk_get_rate(), which leads to a division by zero when calculating delay values. The fix involved adding clock initialization code before using the clock.

Impact Analysis

The vulnerability can cause a division by zero error in the kernel, which may lead to system instability or crashes when the affected hardware random number generator driver is used.

Mitigation Strategies

Update the Linux kernel to a version that includes the fix for the division by zero in ks_sa_rng_init. The fix involves proper initialization of the clock pointer before its use, preventing the division by zero error. Applying the patch or upgrading to the fixed kernel version will mitigate the vulnerability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40127. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart