{"id":"CVE-2025-40127","summary":"hwrng: ks-sa - fix division by zero in ks_sa_rng_init","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwrng: ks-sa - fix division by zero in ks_sa_rng_init\n\nFix division by zero in ks_sa_rng_init caused by missing clock\npointer initialization. The clk_get_rate() call is performed on\nan uninitialized clk pointer, resulting in division by zero when\ncalculating delay values.\n\nAdd clock initialization code before using the clock.\n\n\n drivers/char/hw_random/ks-sa-rng.c | 7 +++++++\n 1 file changed, 7 insertions(+)","modified":"2026-04-02T12:48:17.510919Z","published":"2025-11-12T10:23:20.775Z","related":["SUSE-SU-2025:4393-1","SUSE-SU-2025:4422-1","SUSE-SU-2025:4505-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2025:4521-1","SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","SUSE-SU-2026:20039-1","SUSE-SU-2026:20059-1","SUSE-SU-2026:20473-1","SUSE-SU-2026:20496-1","openSUSE-SU-2025:20172-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40127.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2b6bcce32cb5aff84588a844a4d3f6dd5353b8e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/612b1dfeb414dfa780a6316014ceddf9a74ff5c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/692a04a1e0cde1d80a33df0078c755cf02cd7268"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d76b099011fa056950f63d05ebb6160991242f6a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eec7e0e19c1fa75dc65e25aa6a21ef24a03849af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4238064379a91e71a9c258996acac43c50c2094"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40127.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40127"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6d01d8511dceb9cd40f72eb102b7d24f0b2e997b"},{"fixed":"692a04a1e0cde1d80a33df0078c755cf02cd7268"},{"fixed":"d76b099011fa056950f63d05ebb6160991242f6a"},{"fixed":"eec7e0e19c1fa75dc65e25aa6a21ef24a03849af"},{"fixed":"f4238064379a91e71a9c258996acac43c50c2094"},{"fixed":"2b6bcce32cb5aff84588a844a4d3f6dd5353b8e2"},{"fixed":"55a70e1de75e5ff5f961c79a2cdc6a4468cc2bf2"},{"fixed":"612b1dfeb414dfa780a6316014ceddf9a74ff5c0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40127.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.246"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.195"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.156"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40127.json"}}],"schema_version":"1.7.5"}